+
@foreach ($locationTransactions as $location)
@endforeach
Owner Transactions
+
@foreach ($ownerTransactins as $owner)
@endforeach
-
\ No newline at end of file
+
diff --git a/device-app/resources/views/components/location-transaction.blade.php b/device-app/resources/views/components/location-transaction.blade.php
index 34abd4f..632a17e 100644
--- a/device-app/resources/views/components/location-transaction.blade.php
+++ b/device-app/resources/views/components/location-transaction.blade.php
@@ -3,4 +3,10 @@
+
+
\ No newline at end of file
diff --git a/device-app/resources/views/components/owner-transaction.blade.php b/device-app/resources/views/components/owner-transaction.blade.php
index 07b6452..7105dad 100644
--- a/device-app/resources/views/components/owner-transaction.blade.php
+++ b/device-app/resources/views/components/owner-transaction.blade.php
@@ -3,4 +3,10 @@
+
+
\ No newline at end of file
diff --git a/device-app/resources/views/components/purchasing-information.blade.php b/device-app/resources/views/components/purchasing-information.blade.php
index ac4d14c..6d532ec 100644
--- a/device-app/resources/views/components/purchasing-information.blade.php
+++ b/device-app/resources/views/components/purchasing-information.blade.php
@@ -10,4 +10,5 @@
cost_centre: {{ $purchasing->cost_centre }}
seller: {{ $purchasing->seller }}
+
\ No newline at end of file
diff --git a/device-app/resources/views/devices/show.blade.php b/device-app/resources/views/devices/show.blade.php
index 72e9e29..3956c16 100644
--- a/device-app/resources/views/devices/show.blade.php
+++ b/device-app/resources/views/devices/show.blade.php
@@ -2,11 +2,4 @@
@section('content')
-
-
-
@endsection
diff --git a/device-app/routes/web.php b/device-app/routes/web.php
index 8908730..e88a952 100644
--- a/device-app/routes/web.php
+++ b/device-app/routes/web.php
@@ -1,6 +1,9 @@
middleware('auth');
// store - store new device
Route::post('/devices', [DeviceController::class, 'store'])->middleware('auth');
+
+// Device purchasing routes
+//Route::get('/devices/{device}/purchasing/create', [PurchasingInformationController::class, 'create']);
+//Route::post('/devices/{device}/purchasing', [PurchasingInformationController::class, 'store']);
+Route::get('/devices/{device}/purchasing/edit', [PurchasingInformationController::class, 'edit']);
+Route::put('/devices/{device}/purchasing', [PurchasingInformationController::class, 'update']);
+//Route::delete('/devices/{device}/purchasing', [PurchasingInformationController::class, 'destroy']);
+
+// Device location routes
+Route::get('/devices/{device}/locations/create', [LocationTransactionController::class, 'create']);
+Route::post('/devices/{device}/locations', [LocationTransactionController::class, 'store']);
+Route::get('/devices/locations/{location}/edit', [LocationTransactionController::class, 'edit']);
+Route::put('/devices/locations/{location}', [LocationTransactionController::class, 'update']);
+Route::delete('/devices/locations/{location}', [LocationTransactionController::class, 'destroy']);
+
+// Device owner routes
+Route::get('/devices/{device}/owners/create', [OwnerTransactionController::class, 'create']);
+Route::post('/devices/{device}/owners', [OwnerTransactionController::class, 'store']);
+Route::get('/devices/owners/{owner}/edit', [OwnerTransactionController::class, 'edit']);
+Route::put('/devices/owners/{owner}', [OwnerTransactionController::class, 'update']);
+Route::delete('/devices/owners/{owner}', [OwnerTransactionController::class, 'destroy']);
+
+//
// edit - show edit form
Route::get('devices/{device}/edit', [DeviceController::class, 'edit'])->middleware('auth');
// update - update device
@@ -34,6 +64,7 @@
// show - show sigle device
Route::get('/devices/{device}', [DeviceController::class, 'show']);
+//User routes
// create - show register form
Route::get('/register', [UserController::class, 'create']);
// store - store new user
@@ -43,4 +74,4 @@
// authenticate - log in user
Route::post('/users/authenticate', [UserController::class, 'authenticate']);
// logout - log out user
-Route::post('/logout', [UserController::class, 'logout']);
+Route::post('/logout', [UserController::class, 'logout']);
\ No newline at end of file