Remove more old references to @js datatables
This commit is contained in:
parent
2627cea3b5
commit
7ec28218fa
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Wholesale;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class ReportController extends Controller
|
||||
{
|
||||
public function accounts()
|
||||
{
|
||||
return view('account/report');
|
||||
}
|
||||
|
||||
public function products()
|
||||
{
|
||||
return view('product/report');
|
||||
}
|
||||
}
|
@ -47,10 +47,9 @@
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
@css(datatables,bootstrap4|fixedheader|responsive|rowgroup|select|searchpanes|searchpanes-left)
|
||||
@js(datatables,bootstrap4|fixedheader|responsive|rowgroup|select|searchpanes)
|
||||
@pa(datatables,rowgroup|select|searchpanes|searchpanes-left)
|
||||
|
||||
@section('page-scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#table').DataTable({
|
||||
|
@ -1,3 +1,5 @@
|
||||
@use(App\Models\Service)
|
||||
|
||||
@extends('adminlte::layouts.app')
|
||||
|
||||
@section('htmlheader_title')
|
||||
@ -29,7 +31,7 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach (\App\Models\Service::active()->with(['product.translate'])->get()->groupBy('product_id') as $s)
|
||||
@foreach (Service::ServiceActive()->with(['product.translate'])->get()->groupBy('product_id') as $s)
|
||||
<tr>
|
||||
<td><a href="{{ url('a/product/details',[($x=$s->first())->product_id]) }}">{{ $x->id }}</a></td>
|
||||
<td>{{ $x->product->category_name }}</td>
|
||||
@ -45,21 +47,9 @@
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@pa(datatables,rowgroup)
|
||||
|
||||
@section('page-scripts')
|
||||
@css(datatables,bootstrap4|fixedheader|responsive|rowgroup|buttons)
|
||||
@js(datatables,bootstrap4|fixedheader|responsive|rowgroup|buttons)
|
||||
|
||||
<style>
|
||||
tr.odd td:first-child,
|
||||
tr.even td:first-child {
|
||||
padding-left: 3em;
|
||||
}
|
||||
table.dataTable tr.dtrg-group.dtrg-level-1 td {
|
||||
background-color: #e0e0e0;
|
||||
color: #4c110f;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#table').DataTable({
|
||||
|
@ -125,8 +125,8 @@ Route::group(['middleware'=>['auth','role:wholesaler'],'prefix'=>'a'],function()
|
||||
->whereIn('type',Supplier::offeringTypeKeys()->toArray())
|
||||
->where('oo','[0-9]+');
|
||||
|
||||
Route::get('report/accounts',[ReportController::class,'accounts']);
|
||||
Route::get('report/products',[ReportController::class,'products']);
|
||||
Route::view('report/accounts','theme.backend.adminlte.account.report');
|
||||
Route::view('report/products','theme.backend.adminlte.product.report');
|
||||
Route::view('report/services','theme.backend.adminlte.service.report');
|
||||
|
||||
// Services
|
||||
|
Loading…
Reference in New Issue
Block a user