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>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('page-scripts')
|
@pa(datatables,rowgroup|select|searchpanes|searchpanes-left)
|
||||||
@css(datatables,bootstrap4|fixedheader|responsive|rowgroup|select|searchpanes|searchpanes-left)
|
|
||||||
@js(datatables,bootstrap4|fixedheader|responsive|rowgroup|select|searchpanes)
|
|
||||||
|
|
||||||
|
@section('page-scripts')
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#table').DataTable({
|
$('#table').DataTable({
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@use(App\Models\Service)
|
||||||
|
|
||||||
@extends('adminlte::layouts.app')
|
@extends('adminlte::layouts.app')
|
||||||
|
|
||||||
@section('htmlheader_title')
|
@section('htmlheader_title')
|
||||||
@ -29,7 +31,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<td><a href="{{ url('a/product/details',[($x=$s->first())->product_id]) }}">{{ $x->id }}</a></td>
|
<td><a href="{{ url('a/product/details',[($x=$s->first())->product_id]) }}">{{ $x->id }}</a></td>
|
||||||
<td>{{ $x->product->category_name }}</td>
|
<td>{{ $x->product->category_name }}</td>
|
||||||
@ -45,21 +47,9 @@
|
|||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@pa(datatables,rowgroup)
|
||||||
|
|
||||||
@section('page-scripts')
|
@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">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#table').DataTable({
|
$('#table').DataTable({
|
||||||
|
@ -125,8 +125,8 @@ Route::group(['middleware'=>['auth','role:wholesaler'],'prefix'=>'a'],function()
|
|||||||
->whereIn('type',Supplier::offeringTypeKeys()->toArray())
|
->whereIn('type',Supplier::offeringTypeKeys()->toArray())
|
||||||
->where('oo','[0-9]+');
|
->where('oo','[0-9]+');
|
||||||
|
|
||||||
Route::get('report/accounts',[ReportController::class,'accounts']);
|
Route::view('report/accounts','theme.backend.adminlte.account.report');
|
||||||
Route::get('report/products',[ReportController::class,'products']);
|
Route::view('report/products','theme.backend.adminlte.product.report');
|
||||||
Route::view('report/services','theme.backend.adminlte.service.report');
|
Route::view('report/services','theme.backend.adminlte.service.report');
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
|
Loading…
Reference in New Issue
Block a user