abschlussprojekt-device-man.../device-app/resources/views/devices/index.blade.php

18 lines
412 B
PHP
Raw Normal View History

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)
<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