diff --git a/resources/views/pages/add-notification.blade.php b/resources/views/pages/add-notification.blade.php index f79fed7..4744c18 100644 --- a/resources/views/pages/add-notification.blade.php +++ b/resources/views/pages/add-notification.blade.php @@ -3,15 +3,13 @@ @section('page_title', 'Add Notification') @section('content') -
-
Add Notification
+
+
Add Notification
-
- - +
@@ -39,7 +37,7 @@
-
+
diff --git a/resources/views/pages/add-photo-slider.blade.php b/resources/views/pages/add-photo-slider.blade.php new file mode 100644 index 0000000..72474ba --- /dev/null +++ b/resources/views/pages/add-photo-slider.blade.php @@ -0,0 +1,99 @@ +@extends('layouts.app') + +@section('page_title', 'Add Photo Slider') + +@section('content') +
+
Add Photo Slider
+
+
+ + + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+ + + + + +@endsection \ No newline at end of file diff --git a/resources/views/pages/home page/photo-slider.blade.php b/resources/views/pages/home page/photo-slider.blade.php index 89215a7..54b43f2 100644 --- a/resources/views/pages/home page/photo-slider.blade.php +++ b/resources/views/pages/home page/photo-slider.blade.php @@ -1,14 +1,80 @@ @extends('layouts.app') -@section('page_title', 'Home Page') +@section('page_title', 'Photo Slider') @section('content') -
-
- Home Page -
-
-

This is the Photo Slider page content.

-
-
-@endsection + @php + $sliders = [ + [ + 'id' => 1, + 'title' => 'Homepage Banner', + 'type' => 'Banner', + 'startDate' => '2025-04-10', + 'endDate' => '2025-04-20' + ], + [ + 'id' => 2, + 'title' => 'Product Carousel', + 'type' => 'Carousel', + 'startDate' => '2025-04-15', + 'endDate' => '2025-04-25' + ], + [ + 'id' => 3, + 'title' => 'Seasonal Promo', + 'type' => 'Banner', + 'startDate' => '2025-04-20', + 'endDate' => '2025-05-01' + ], + [ + 'id' => 4, + 'title' => 'Flash Sale Slider', + 'type' => 'Slider', + 'startDate' => '2025-04-22', + 'endDate' => '2025-04-24' + ], + [ + 'id' => 5, + 'title' => 'New Arrivals', + 'type' => 'Carousel', + 'startDate' => '2025-04-25', + 'endDate' => '2025-05-05' + ], + [ + 'id' => 6, + 'title' => 'Event Highlight', + 'type' => 'Banner', + 'startDate' => '2025-04-30', + 'endDate' => '2025-05-10' + ] + ]; + @endphp + + @include('components.table-component', [ + 'pageTitle' => 'Photo Slider', + 'data' => $sliders, + 'columns' => [ + ['name' => 'Title', 'key' => 'title', 'sortable' => true], + ['name' => 'Type', 'key' => 'type', 'sortable' => true], + ['name' => 'Start Date', 'key' => 'startDate', 'sortable' => true], + ['name' => 'End Date', 'key' => 'endDate', 'sortable' => true] + ], + 'actions' => ['edit', 'view', 'delete'], + 'showAddButton' => true, + 'addButtonUrl' => '/add-photo-slider', + 'showCheckboxes' => true, + 'showBatchDelete' => true, + 'showEditModal' => true, + 'showViewModal' => true + ]) + + +@endsection \ No newline at end of file diff --git a/resources/views/pages/promotions.blade.php b/resources/views/pages/promotions.blade.php index 3fd8654..d3dd456 100644 --- a/resources/views/pages/promotions.blade.php +++ b/resources/views/pages/promotions.blade.php @@ -3,12 +3,74 @@ @section('page_title', 'Promotions') @section('content') -
-
- Promotions -
-
-

This is the Promotions page content.

-
-
-@endsection + @php + $promotions = [ + [ + 'id' => 1, + 'title' => 'Spring Sale', + 'type' => 'Discount', + 'startDate' => '2025-04-10', + 'endDate' => '2025-04-20', + 'status' => 'Done' + ], + [ + 'id' => 2, + 'title' => 'Flash Deal', + 'type' => 'Flash Sale', + 'startDate' => '2025-04-15', + 'endDate' => '2025-04-17', + 'status' => 'On Going' + ], + [ + 'id' => 3, + 'title' => 'Loyalty Promo', + 'type' => 'Reward', + 'startDate' => '2025-04-20', + 'endDate' => '2025-05-01', + 'status' => 'Done' + ], + [ + 'id' => 4, + 'title' => 'Holiday Bundle', + 'type' => 'Bundle', + 'startDate' => '2025-04-25', + 'endDate' => '2025-05-05', + 'status' => 'On Going' + ], + [ + 'id' => 5, + 'title' => 'Back-to-School', + 'type' => 'Discount', + 'startDate' => '2025-04-30', + 'endDate' => '2025-05-10', + 'status' => 'Done' + ], + [ + 'id' => 6, + 'title' => 'Clearance Sale', + 'type' => 'Flash Sale', + 'startDate' => '2025-05-01', + 'endDate' => '2025-05-03', + 'status' => 'On Going' + ] + ]; + @endphp + + @include('components.table-component', [ + 'pageTitle' => 'Promotions', + 'data' => $promotions, + 'columns' => [ + ['name' => 'Title', 'key' => 'title', 'sortable' => true], + ['name' => 'Type', 'key' => 'type', 'sortable' => true], + ['name' => 'Start Date', 'key' => 'startDate', 'sortable' => true], + ['name' => 'End Date', 'key' => 'endDate', 'sortable' => true], + ['name' => 'Status', 'key' => 'status', 'sortable' => true] + ], + 'actions' => ['edit', 'view', 'delete'], + 'showAddButton' => true, + 'showCheckboxes' => true, + 'showBatchDelete' => true, + 'showEditModal' => true, + 'showViewModal' => true + ]) +@endsection \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 8de9e0b..fc10e94 100644 --- a/routes/web.php +++ b/routes/web.php @@ -90,4 +90,16 @@ Route::get('/add-user', function () { Route::get('/add-notification', function () { return view('pages.add-notification'); -})->name('add-notification'); \ No newline at end of file +})->name('add-notification'); + +Route::get('/photo-slider', function () { + return view('pages.home page.photo-slider'); +})->name('photo-slider'); + +Route::get('/promotions', function () { + return view('pages.promotions'); +})->name('promotions'); + +Route::get('/add-photo-slider', function () { + return view('pages.add-photo-slider'); +})->name('add-photo-slider'); \ No newline at end of file