This commit is contained in:
pbao9
2026-01-30 09:46:12 +07:00
parent 8b4c93e820
commit 891fe5d161
15 changed files with 2458 additions and 1327 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class DataTable extends Component
{
public string $id;
public string $ajax;
public array $columns;
public function __construct(
string $id,
string $ajax,
array $columns
) {
$this->id = $id;
$this->ajax = $ajax;
$this->columns = $columns;
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.data-table');
}
}