add shipping rules

This commit is contained in:
Ludovic CANDELLIER
2023-07-16 14:45:42 +02:00
parent 72a7b270f9
commit 0879b0abf0
459 changed files with 6219 additions and 5416 deletions

View File

@@ -2,9 +2,9 @@
namespace App\Datatables\Botanic;
use Yajra\DataTables\Html\Column;
use App\Datatables\ParentDataTable as DataTable;
use App\Models\Botanic\Genre;
use Yajra\DataTables\Html\Column;
class GenresDataTable extends DataTable
{
@@ -13,6 +13,7 @@ class GenresDataTable extends DataTable
public function query(Genre $model)
{
$model = $model::with('family')->withCount('species')->withCount('varieties');
return $this->buildQuery($model);
}
@@ -23,6 +24,7 @@ class GenresDataTable extends DataTable
return $genre->family ? $genre->family->name : '';
})
->rawColumns(['genre_name', 'action']);
return parent::modifier($datatables);
}