2023-03-24 16:51:30 +01:00
|
|
|
@extends('layout')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<h1>Device List</h1>
|
|
|
|
@unless(count($devices) == 0)
|
|
|
|
<ul>
|
|
|
|
@foreach ($devices as $device)
|
2023-03-30 15:16:38 +02:00
|
|
|
<x-device-simple :device="$device" />
|
2023-03-24 16:51:30 +01:00
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@else
|
|
|
|
<p>No devices found</p>
|
|
|
|
@endunless
|
2023-03-31 17:17:09 +02:00
|
|
|
@can('admin-only')
|
|
|
|
<button><a href="devices/create">Device</a></button>
|
|
|
|
@endcan
|
2023-03-25 11:02:47 +01:00
|
|
|
@endsection
|