add shipping rules
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace App\Datatables\Botanic;
|
||||
|
||||
use App\Repositories\Shop\Tags;
|
||||
use Yajra\DataTables\Html\Column;
|
||||
use App\Datatables\ParentDataTable as DataTable;
|
||||
use App\Models\Botanic\Specie;
|
||||
use App\Repositories\Botanic\Species;
|
||||
use App\Repositories\Shop\Tags;
|
||||
use Yajra\DataTables\Html\Column;
|
||||
|
||||
class SpeciesDataTable extends DataTable
|
||||
{
|
||||
@@ -15,6 +15,7 @@ class SpeciesDataTable extends DataTable
|
||||
public function query(Specie $model)
|
||||
{
|
||||
$model = $model::withCount(['images', 'varieties', 'tags'])->with(['genre', 'image', 'tags']);
|
||||
|
||||
return $this->buildQuery($model);
|
||||
}
|
||||
|
||||
@@ -32,9 +33,11 @@ class SpeciesDataTable extends DataTable
|
||||
foreach ($specie->tags as $tag) {
|
||||
$html .= Tags::getTagHtml($tag);
|
||||
}
|
||||
|
||||
return $html;
|
||||
})
|
||||
->rawColumns(['thumb', 'tags2', 'genre_name', 'action']);
|
||||
|
||||
return parent::modifier($datatables);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user