{{-- @php $bussiness = App\Models\Business::first(); @endphp --}} @php use Illuminate\Support\Facades\Auth; use App\Models\Business; $user = Auth::user(); $business = $user ? Business::find($user->businesses_id) : null; // dd($business); @endphp
image
    • {{ translate('dashboard') }}
    • @if (auth()->user()->can('user.view') || auth()->user()->can('user.create') || auth()->user()->can('role.view') || auth()->user()->can('role.create') || auth()->user()->can('employee-type.view') || auth()->user()->can('employee-type.create') || auth()->user()->can('attendance-type.view') || auth()->user()->can('attendance-type.create') || auth()->user()->can('position.view') || auth()->user()->can('position.create') || auth()->user()->can('em-destination.view') || auth()->user()->can('em-destination.create') || auth()->user()->can('department.view') || auth()->user()->can('department.create'))
      • @if (auth()->user()->can('user.view') || auth()->user()->can('user.create'))
      • Employee
      • @endif @if (auth()->user()->can('role.view') || auth()->user()->can('role.create'))
      • Role
      • @endif @if (auth()->user()->can('employee-type.view') || auth()->user()->can('employee-type.create'))
      • Employee Type
      • @endif @if (auth()->user()->can('attendance-type.view') || auth()->user()->can('attendance-type.create'))
      • Attendance Type
      • @endif @if (auth()->user()->can('position.view') || auth()->user()->can('position.create'))
      • Position
      • @endif @if (auth()->user()->can('em-destination.view') || auth()->user()->can('em-destination.create'))
      • Destination
      • @endif @if (auth()->user()->can('department.view') || auth()->user()->can('department.create'))
      • Department
      • @endif
    • @endif @if (auth()->user()->can('contact.view') || auth()->user()->can('contact.create') || auth()->user()->can('supplier.view') || auth()->user()->can('supplier.create') || auth()->user()->can('wakeup.view') || auth()->user()->can('wakeup.create') || auth()->user()->can('customer-type.view') || auth()->user()->can('customer-type.create') || auth()->user()->can('customer-group.view') || auth()->user()->can('customer-group.create'))
      • @if (auth()->user()->can('contact.view') || auth()->user()->can('contact.create'))
      • Customer
      • @endif @if (auth()->user()->can('supplier.view') || auth()->user()->can('supplier.create'))
      • Supplier
      • @endif @if (auth()->user()->can('wakeup.view') || auth()->user()->can('wakeup.create'))
      • Wake Up Call List
      • @endif @if (auth()->user()->can('customer-type.view') || auth()->user()->can('customer-type.create'))
      • Customer Type
      • @endif @if (auth()->user()->can('customer-group.view') || auth()->user()->can('customer-group.create'))
      • Customer Group
      • @endif
    • @endif @if (auth()->user()->can('product.view') || auth()->user()->can('product.create') || auth()->user()->can('product-variation.view') || auth()->user()->can('product-variation.create') || auth()->user()->can('type.view') || auth()->user()->can('type.create') || auth()->user()->can('product-category.view') || auth()->user()->can('product-category.create') || auth()->user()->can('cousine.view') || auth()->user()->can('cousine.create') || auth()->user()->can('menu.view') || auth()->user()->can('menu.create') || auth()->user()->can('drink-type.view') || auth()->user()->can('drink-type.create') || auth()->user()->can('brand.view') || auth()->user()->can('brand.create') || auth()->user()->can('unit.view') || auth()->user()->can('unit.create') || auth()->user()->can('food-calculation.view') || auth()->user()->can('food-calculation.create'))
      • {{-- @if (auth()->user()->can('product.view') || auth()->user()->can('product.view'))
      • View
      • @endif --}} @if (auth()->user()->can('product.view') || auth()->user()->can('product.create'))
      • List
      • @endif @if (auth()->user()->can('product-variation.view') || auth()->user()->can('product-variation.create'))
      • Variation
      • @endif @if (auth()->user()->can('type.view') || auth()->user()->can('type.create'))
      • Type
      • @endif @if (auth()->user()->can('product-category.view') || auth()->user()->can('product-category.create'))
      • Category
      • @endif @if (auth()->user()->can('cousine.view') || auth()->user()->can('cousine.create'))
      • Cousine
      • @endif @if (auth()->user()->can('menu.view') || auth()->user()->can('menu.create'))
      • Menu
      • @endif @if (auth()->user()->can('drink-type.view') || auth()->user()->can('drink-type.create'))
      • Drink Type
      • @endif @if (auth()->user()->can('brand.view') || auth()->user()->can('brand.create'))
      • Brand
      • @endif @if (auth()->user()->can('unit.view') || auth()->user()->can('unit.create'))
      • Unit
      • @endif
    • @endif @if (auth()->user()->can('sale.create') || auth()->user()->can('sale.view'))
      • @if (auth()->user()->can('sale.view') || auth()->user()->can('sale.create'))
      • Invoice List
      • @endif
    • @endif @if (auth()->user()->can('setting.update') || auth()->user()->can('business-location.index') || auth()->user()->can('business-location.create'))
      • @if (auth()->user()->can('setting.update'))
      • Business Setting
      • @endif @if (auth()->user()->can('business-location.index') || auth()->user()->can('business-location.create'))
      • Business Location
      • @endif @if (auth()->user()->can('setting.currency-settings'))
      • Currency Setting
      • @endif @if (auth()->user()->can('setting.product-setting'))
      • Product Setting
      • @endif
    • @endif