diff --git a/resources/views/pages/fuel-price-update-logs.blade.php b/resources/views/pages/fuel-price-update-logs.blade.php index e69de29..913bed3 100644 --- a/resources/views/pages/fuel-price-update-logs.blade.php +++ b/resources/views/pages/fuel-price-update-logs.blade.php @@ -0,0 +1,212 @@ +@extends('layouts.app') + +@section('page_title', 'Fuel Price Update Logs') + +@section('content') + @php + $fuelPriceUpdateLogs = [ + [ + 'id' => 1, + 'schedule' => 'On-demand', + 'isCompleted' => 'Yes', + 'isSuccess' => 'Yes', + 'updatedBy' => 'Graxia Montino', + 'createdAt' => '2024-04-18 10:39 am' + ], + [ + 'id' => 2, + 'schedule' => '2023-11-17 09:24 am', + 'isCompleted' => 'Yes', + 'isSuccess' => 'No', + 'updatedBy' => 'Graxia Montino', + 'createdAt' => '2023-11-17 09:23 am', + 'errorMessage' => 'Please recheck the CSV file, some fuels doesn\'t exist.' + ], + [ + 'id' => 3, + 'schedule' => '2023-10-05 14:15 pm', + 'isCompleted' => 'Yes', + 'isSuccess' => 'Yes', + 'updatedBy' => 'John Doe', + 'createdAt' => '2023-10-05 14:10 pm' + ], + [ + 'id' => 4, + 'schedule' => '2023-09-20 08:30 am', + 'isCompleted' => 'No', + 'isSuccess' => 'No', + 'updatedBy' => 'Jane Smith', + 'createdAt' => '2023-09-20 08:25 am', + 'errorMessage' => 'Invalid CSV format.' + ], + [ + 'id' => 5, + 'schedule' => 'On-demand', + 'isCompleted' => 'Yes', + 'isSuccess' => 'Yes', + 'updatedBy' => 'Graxia Montino', + 'createdAt' => '2023-08-15 11:45 am' + ], + [ + 'id' => 6, + 'schedule' => '2023-07-10 16:20 pm', + 'isCompleted' => 'Yes', + 'isSuccess' => 'No', + 'updatedBy' => 'Alex Brown', + 'createdAt' => '2023-07-10 16:15 pm', + 'errorMessage' => 'Server error during update.' + ], + ]; + @endphp + +
+
Fuel Price Update Logs
+
+
+
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+
+ +
+
+ + + @include('components.table-component', [ + 'data' => $fuelPriceUpdateLogs, + 'columns' => [ + ['name' => 'Schedule', 'key' => 'schedule', 'sortable' => true], + ['name' => 'Is Completed', 'key' => 'isCompleted', 'sortable' => true], + [ + 'name' => 'Is Success', + 'key' => 'isSuccess', + 'sortable' => true, + 'render' => function($item) { + return $item['isSuccess'] === 'Yes' ? 'Yes' : ($item['errorMessage'] ?? 'No'); + } + ], + ['name' => 'Updated By', 'key' => 'updatedBy', 'sortable' => true], + ['name' => 'Created At', 'key' => 'createdAt', 'sortable' => true] + ], + 'allFields' => [], + 'actions' => [], + 'showAddButton' => false, + 'showCheckboxes' => false, + 'showBatchDelete' => false, + 'showEditModal' => false, + 'showViewModal' => false, + 'showSearch' => false + ]) +
+
+ + + + +@endsection \ No newline at end of file