diff --git a/resources/views/pages/about us/terms-and-privacy.blade.php b/resources/views/pages/about us/terms-and-privacy.blade.php index f4f83b7..a4cb93e 100644 --- a/resources/views/pages/about us/terms-and-privacy.blade.php +++ b/resources/views/pages/about us/terms-and-privacy.blade.php @@ -1,14 +1,76 @@ @extends('layouts.app') -@section('page_title', 'About Us') +@section('page_title', 'Terms and Privacy') @section('content') -
-
- Terms and Privacy -
-
-

This is the Terms and Privacy page content.

-
-
-@endsection + @php + $termsAndPrivacy = [ + [ + 'id' => 1, + 'title' => 'User Agreement', + 'details' => 'Users must agree to use the platform responsibly and comply with all applicable laws.', + 'type' => 'Terms' + ], + [ + 'id' => 2, + 'title' => 'Privacy Policy', + 'details' => 'We collect personal data to improve services, with consent, and protect user information.', + 'type' => 'Privacy' + ], + [ + 'id' => 3, + 'title' => 'Service Terms', + 'details' => 'Details on how services are provided, including limitations and user obligations.', + 'type' => 'Terms' + ], + [ + 'id' => 4, + 'title' => 'Data Protection', + 'details' => 'Our commitment to GDPR compliance and secure data handling practices.', + 'type' => 'Privacy' + ], + [ + 'id' => 5, + 'title' => 'Refund Policy', + 'details' => 'Conditions under which refunds are issued for services or subscriptions.', + 'type' => 'Terms' + ], + [ + 'id' => 6, + 'title' => 'Cookie Policy', + 'details' => 'How we use cookies to enhance user experience and track site usage.', + 'type' => 'Privacy' + ] + ]; + @endphp + + @include('components.table-component', [ + 'pageTitle' => 'Terms and Privacy', + 'data' => $termsAndPrivacy, + 'columns' => [ + ['name' => 'Title', 'key' => 'title', 'sortable' => true], + ['name' => 'Details', 'key' => 'details', 'sortable' => true], + ['name' => 'Type', 'key' => 'type', 'sortable' => true] + ], + 'allFields' => [ + ['name' => 'Title', 'key' => 'title', 'type' => 'text', 'required' => true], + ['name' => 'Details', 'key' => 'details', 'type' => 'textarea', 'required' => true] + ], + 'actions' => ['edit', 'view', 'delete'], + 'showAddButton' => true, + 'addButtonUrl' => '/add-terms-and-privacy', + 'showCheckboxes' => true, + 'showBatchDelete' => true, + 'showEditModal' => true, + 'showViewModal' => true + ]) + + +@endsection \ No newline at end of file diff --git a/resources/views/pages/add-terms-and-privacy.blade.php b/resources/views/pages/add-terms-and-privacy.blade.php new file mode 100644 index 0000000..1679368 --- /dev/null +++ b/resources/views/pages/add-terms-and-privacy.blade.php @@ -0,0 +1,84 @@ +@extends('layouts.app') + +@section('page_title', 'Add Terms and Privacy') + +@section('content') +
+
Add Terms and Privacy
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + + +@endsection \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 42b68ed..3d4a716 100644 --- a/routes/web.php +++ b/routes/web.php @@ -114,4 +114,8 @@ Route::get('/add-top-up', function () { Route::get('/add-card-types', function () { return view('pages.add-card-types'); -})->name('add-card-types'); \ No newline at end of file +})->name('add-card-types'); + +Route::get('/add-terms-and-privacy', function () { + return view('pages.add-terms-and-privacy'); +})->name('add-terms-and-privacy'); \ No newline at end of file