@extends('layouts.app') @section('title', __('brand.brands')) @section('content') @include('layouts.partials.breadcrumb',['page_title'=> __( 'brand.brands') , 'bread_crumbs'=>array( array('title'=>__('brand.manage_your_brands'),'url'=>''))])
@php $can_add = $can_view = true; if(!userHasPermission('brand.create')) $can_add = false; if(!userHasPermission('brand.view')) $can_view = false; @endphp @component('components.widget', ['class' => 'box-body', 'title' => __( 'brand.all_your_brands' )]) @if($can_add) @slot('tool') @endslot @endif @endphp @if($can_add) @include('layouts.partials.datatable', [ 'tableId' => 'category_table', 'columns' => [ ['title' => __( 'brand.brands' ), 'orderable' => true, 'searchable' => true], ['title' => __( 'brand.note' ), 'orderable' => true, 'searchable' => true], ['title' => __('messages.action'), 'orderable' => false, 'searchable' => false], ], 'ajaxUrl' => '/brands', // Replace with actual route ]) @endif @endcomponent
@stop @section('javascript') @parent @endsection