add device controller
This commit is contained in:
14
device-app/resources/views/devices/index.blade.php
Normal file
14
device-app/resources/views/devices/index.blade.php
Normal 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
|
15
device-app/resources/views/devices/show.blade.php
Normal file
15
device-app/resources/views/devices/show.blade.php
Normal 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
|
Reference in New Issue
Block a user