update
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user