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