database seed and some basic frontend

This commit is contained in:
TimmensOne
2023-03-23 21:50:31 +01:00
parent ad30a02a52
commit 0d22d49119
8 changed files with 106 additions and 13 deletions

View File

@@ -1 +1,9 @@
<h1>Device DEtail</h1>
<h1>Device Detail</h1>
<h2>{{ $device['device_id'] }}</h2>
<h2>{{ $device['title'] }}</h2>
<h2>{{ $device['device_type'] }}</h2>
<h2>{{ $device['description'] }}</h2>
<h2>{{ $device['accessories'] }}</h2>
<h2>{{ $device['rz_username_buyer'] }}</h2>
<h2>{{ $device['serial_number'] }}</h2>
<h2>{{ $device['image_url'] }}</h2>

View File

@@ -1,8 +1,10 @@
<h1>Device List</h1>
@unless(count($devices) == 0)
@foreach($devices as $device)
@endforeach
@foreach ($devices as $device)
<h2>
<a href="/devices/{{ $device['device_id'] }}">{{$device['title']}}</<a>
</h2>
@endforeach
@else
<p>No devices</p>
@endunless