database seed and some basic frontend
This commit is contained in:
@@ -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>
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user