abschlussprojekt-device-man.../device-app/resources/views/devices/index.blade.php
2023-03-30 15:16:38 +02:00

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