@if(userCan('ProductCategory-list')==0) @php header("Location: " . URL::to('errors.403'), true, 302); exit(); @endphp @endphp @endif @extends('layouts.default') @php $pageTitle = 'Product Category List'; @endphp @section('title',$pageTitle) @section('PageHead') @if ( session('massage') ) × Success! {{session('massage')}} @endif @if ( session('error') ) × Not Success! {{session('error')}} @endif @if (Session::has('errors')) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @php $CategoryName= app('request')->input('category_name'); $ParentCatId= app('request')->input('parent_cat_id'); $Status= app('request')->input('status'); $appPerPage= app('request')->input('perPage'); @endphp {{$pageTitle}} Dashboard @if(userCan('setting-list')>0) Settings @endif @if(userCan('ProductCategory-list')>0) {{$pageTitle}} @endif @if(userCan('ProductCategory-create')>0) Add New @endif @stop @section('content') Per Page @php $curentperPagesnum = isset($_GET['perPage'])?$_GET['perPage']:10; @endphp @php $perPages = array(10,15,20,50,100,500,1000);@endphp Select All @foreach( $perPages as $key =>$perPagesnum ) {{$perPagesnum}} @endforeach Category Name Parent Category Name All {!! product_category(@$ParentCatId) !!} Status All {!!statusIs(@$Status)!!} Search {{paginationHeaderInfo($datas)}} {{$datas->appends([ 'category_name' => $CategoryName, 'parent_cat_id' => $ParentCatId, 'status' => $Status ])->links('pagination::bootstrap-4')}} ID Category Name Parent Category Status Action @foreach($datas as $key=>$data) {{@$data->catID}} {{@$data->catName}} {{@$data->ProductCategorie->catName}} @if(intval(@$data->status)>0) Active @else Deactive @endif @if(userCan('ProductCategory')>0) @endif @if(userCan('ProductCategory-edit')>0) @endif @if(userCan('ProductCategory')>0) @endif @endforeach {{paginationHeaderInfo($datas)}} {{$datas->appends([ 'category_name' => $CategoryName, 'parent_cat_id' => $ParentCatId, 'status' => $Status ])->links('pagination::bootstrap-4')}} @stop