add device controller

This commit is contained in:
TimmensOne
2023-03-25 11:02:47 +01:00
parent 665916d05f
commit 5df9e492ff
5 changed files with 34 additions and 16 deletions

View File

@@ -0,0 +1,14 @@
@extends('layout')
@section('content')
<h1>Device List</h1>
@unless(count($devices) == 0)
<ul>
@foreach ($devices as $device)
<x-device-card :device="$device" />
@endforeach
</ul>
@else
<p>No devices found</p>
@endunless
@endsection

View File

@@ -0,0 +1,15 @@
@extends('layout')
@section('content')
<h1>Device Detail</h1>
<ul>
<li>{{ $device['device_id'] }}</li>
<li>{{ $device['title'] }}</li>
<li>{{ $device['device_type'] }}</li>
<li>{{ $device['description'] }}</li>
<li>{{ $device['accessories'] }}</li>
<li>{{ $device['rz_username_buyer'] }}</li>
<li>{{ $device['serial_number'] }}</li>
<li>{{ $device['image_url'] }}</li>
</ul>
@endsection