diff --git a/resources/views/components/table-component.blade.php b/resources/views/components/table-component.blade.php new file mode 100644 index 0000000..084d33b --- /dev/null +++ b/resources/views/components/table-component.blade.php @@ -0,0 +1,786 @@ +@props([ + 'pageTitle' => 'Table', + 'data' => [], + 'columns' => [], + 'actions' => [], + 'showAddButton' => false, + 'addButtonUrl' => '#', + 'showCheckboxes' => false, + 'showBatchDelete' => false, + 'showEditModal' => false, + 'showViewModal' => false +]) + + +
+ + | + @endif + @foreach ($columns as $index => $column) ++ {{ $column['name'] }} + @if ($column['sortable']) + + @endif + | + @endforeach + @if (!empty($actions)) +Action | + @endif +
---|
This is the Card Member page content.
-- - | -Username | -First Name | -Last Name | -User Role | -Status | -Action | -
---|