Add exports & fix on edition
This commit is contained in:
@@ -8,7 +8,7 @@ use App\Models\Botanic\Family;
|
||||
|
||||
class FamiliesDataTable extends DataTable
|
||||
{
|
||||
public $model_name = 'Families';
|
||||
public $model_name = 'families';
|
||||
|
||||
public function query(Family $model)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ use App\Models\Botanic\Genre;
|
||||
|
||||
class GenresDataTable extends DataTable
|
||||
{
|
||||
public $model_name = 'Genres';
|
||||
public $model_name = 'genres';
|
||||
|
||||
public function query(Genre $model)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ use App\Models\Botanic\Specie;
|
||||
|
||||
class SpeciesDataTable extends DataTable
|
||||
{
|
||||
public $model_name = 'Species';
|
||||
public $model_name = 'species';
|
||||
|
||||
public function query(Specie $model)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ use App\Models\Botanic\Variety;
|
||||
|
||||
class VarietiesDataTable extends DataTable
|
||||
{
|
||||
public $model_name = 'Varieties';
|
||||
public $model_name = 'varieties';
|
||||
|
||||
public function query(Variety $model)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,10 @@ class CustomersDataTable extends DataTable
|
||||
protected function getColumns()
|
||||
{
|
||||
return [
|
||||
Column::make('name'),
|
||||
Column::make('name')->title('Nom'),
|
||||
Column::make('address')->title('Adresse'),
|
||||
Column::make('zipcode')->title('Code postal'),
|
||||
Column::make('city')->title('Ville'),
|
||||
self::makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -18,7 +18,9 @@ class InvoicesDataTable extends DataTable
|
||||
protected function getColumns()
|
||||
{
|
||||
return [
|
||||
Column::make('name'),
|
||||
Column::make('status.name'),
|
||||
Column::make('customer.name'),
|
||||
Column::make('total'),
|
||||
self::makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user