From 665916d05f3e5f1f3ccd6c247955a208e57cae4a Mon Sep 17 00:00:00 2001 From: TimmensOne Date: Fri, 24 Mar 2023 16:51:30 +0100 Subject: [PATCH] basic frontend --- .../resources/views/deviceDetail.blade.php | 24 ++++++++++------- .../resources/views/deviceList.blade.php | 26 ++++++++++++------- device-app/resources/views/layout.blade.php | 25 ++++++++++++++++++ device-app/resources/views/welcome.blade.php | 7 ++++- 4 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 device-app/resources/views/layout.blade.php diff --git a/device-app/resources/views/deviceDetail.blade.php b/device-app/resources/views/deviceDetail.blade.php index 5a380d8..5543fca 100644 --- a/device-app/resources/views/deviceDetail.blade.php +++ b/device-app/resources/views/deviceDetail.blade.php @@ -1,9 +1,15 @@ -

Device Detail

-

{{ $device['device_id'] }}

-

{{ $device['title'] }}

-

{{ $device['device_type'] }}

-

{{ $device['description'] }}

-

{{ $device['accessories'] }}

-

{{ $device['rz_username_buyer'] }}

-

{{ $device['serial_number'] }}

-

{{ $device['image_url'] }}

+@extends('layout') + +@section('content') +

Device Detail

+ +@endsection \ No newline at end of file diff --git a/device-app/resources/views/deviceList.blade.php b/device-app/resources/views/deviceList.blade.php index a8e793c..ab48492 100644 --- a/device-app/resources/views/deviceList.blade.php +++ b/device-app/resources/views/deviceList.blade.php @@ -1,10 +1,16 @@ -

Device List

-@unless(count($devices) == 0) - @foreach ($devices as $device) -

- {{$device['title']}} -

- @endforeach -@else -

No devices

-@endunless +@extends('layout') + +@section('content') +

Device List

+ @unless(count($devices) == 0) +
+ @else +

No devices found

+ @endunless +@endsection \ No newline at end of file diff --git a/device-app/resources/views/layout.blade.php b/device-app/resources/views/layout.blade.php new file mode 100644 index 0000000..630b1dc --- /dev/null +++ b/device-app/resources/views/layout.blade.php @@ -0,0 +1,25 @@ + + + + + Device Manager + + + + +
+

Device Manager

+
+ @yield('content') +
+
+ + + + \ No newline at end of file diff --git a/device-app/resources/views/welcome.blade.php b/device-app/resources/views/welcome.blade.php index f47aba5..0dc3ef3 100644 --- a/device-app/resources/views/welcome.blade.php +++ b/device-app/resources/views/welcome.blade.php @@ -1 +1,6 @@ -

Welcome

\ No newline at end of file +@extends('layout') + +@section('content') +

Welcome

+ To List +@endsection \ No newline at end of file