diff --git a/app/Http/Controllers/Dashboard/ContentRecapController.php b/app/Http/Controllers/Dashboard/ContentRecapController.php index ba2aeab..2f6453e 100644 --- a/app/Http/Controllers/Dashboard/ContentRecapController.php +++ b/app/Http/Controllers/Dashboard/ContentRecapController.php @@ -14,7 +14,13 @@ class ContentRecapController extends Controller public function index(Request $request){ return view('dashboard.content-recaps.index', [ 'title' => 'Rekap Konten', - 'classification' => $request->input('classification', null) + 'classifications' => ContentRecapClassification::all(), + 'classification' => $request->input('classification', null), + 'channel' => $request->input('channel', null), + 'social_media' => $request->input('social_media', null), + 'posted_year' => $request->input('posted_year', null), + 'posted_month' => $request->input('posted_month', null), + 'posted_date' => $request->input('posted_date', null), ]); } diff --git a/resources/views/dashboard/content-recaps/index.blade.php b/resources/views/dashboard/content-recaps/index.blade.php index f63973d..e4254ca 100644 --- a/resources/views/dashboard/content-recaps/index.blade.php +++ b/resources/views/dashboard/content-recaps/index.blade.php @@ -16,18 +16,23 @@
@@ -57,6 +62,160 @@ + + diff --git a/resources/views/partials/app/datatable.blade.php b/resources/views/partials/app/datatable.blade.php index 8a228e1..fe7f9a3 100644 --- a/resources/views/partials/app/datatable.blade.php +++ b/resources/views/partials/app/datatable.blade.php @@ -999,17 +999,17 @@ { data: 'id', name: 'id', orderable: true, searchable: false, visible: false }, ], columnDefs: [ - { targets: 0, width: '5%' }, // Index - { targets: 1, width: '25%' }, // Title + { targets: 0, width: '2%' }, // Index + { targets: 1, width: '20%' }, // Content Theme { targets: 2, width: '10%' }, // Channel { targets: 3, width: '7%' }, // Social Media { targets: 4, width: '10%' }, // Posted Date - { targets: 5, width: '12%' }, // Classification - { targets: 6, width: '20%' }, // Link - { targets: 7, width: '8%', className: 'text-center' }, // Action button + { targets: 5, width: '10%' }, // Classification + { targets: 6, width: '10%' }, // Link + { targets: 7, width: '2%', className: 'text-center' }, // Action button { - targets: [1, 3, 5, 6], // Title & Link + targets: [1, 2, 6], // Title & Link createdCell: function(td) { $(td).css({ 'white-space': 'normal', @@ -1021,7 +1021,7 @@ language: datatableLanguage, // responsive: true, autoWidth: false, - order: [[9, 'desc']], + order: [[8, 'desc']], pagingType: "simple", lengthMenu: [[10, 25, 50, 100, -1], ['Tampilkan 10 data', 'Tampilkan 25 data', 'Tampilkan 50 data', 'Tampilkan 100 data', 'Tampilkan semua']], scrollX: true