16 lines
373 B
PHP
16 lines
373 B
PHP
@extends('layout')
|
|
|
|
@section('content')
|
|
<h1>Device List</h1>
|
|
@unless(count($devices) == 0)
|
|
<ul>
|
|
@foreach ($devices as $device)
|
|
<x-device-simple :device="$device" />
|
|
@endforeach
|
|
</ul>
|
|
@else
|
|
<p>No devices found</p>
|
|
@endunless
|
|
<button><a href="devices/create">Device</a></button>
|
|
@endsection
|