26 lines
821 B
PHP
26 lines
821 B
PHP
<?php
|
|
|
|
namespace App\Tables;
|
|
|
|
use App\Models\SubDepartment;
|
|
use Mmt\GenericTable\Components\Column;
|
|
use Mmt\GenericTable\Components\ColumnCollection;
|
|
use Mmt\GenericTable\Interfaces\IDragDropReordering;
|
|
use Mmt\GenericTable\Interfaces\IGenericTable;
|
|
use Mmt\GenericTable\Support\GenericTableSettings;
|
|
|
|
class SubDepartmentsTable implements IGenericTable
|
|
{
|
|
public GenericTableSettings $tableSettings;
|
|
|
|
public function __construct()
|
|
{
|
|
$columns = new ColumnCollection();
|
|
$columns->add(new Column("Id", 'id as uid'));
|
|
$columns->add(new Column("Sub Department Name", 'name'));
|
|
$columns->add(new Column("Status"));
|
|
$columns->add(new Column("Department Name", 'department.name'));
|
|
|
|
$this->tableSettings = new GenericTableSettings(new SubDepartment(), $columns);
|
|
}
|
|
} |