{{__('repair::lang.repair')}}
    @if(auth()->user()->can('job_sheet.create') || auth()->user()->can('job_sheet.view_assigned') || auth()->user()->can('job_sheet.view_all'))
  • segment(2) == 'job-sheet' && empty(request()->segment(3))) class="active" @endif> @lang('repair::lang.job_sheets')
  • @endif @can('job_sheet.create')
  • segment(2) == 'job-sheet' && request()->segment(3) == 'create') class="active" @endif> @lang('repair::lang.add_job_sheet')
  • @endcan @if(auth()->user()->can('repair.view') || auth()->user()->can('repair.view_own'))
  • segment(2) == 'repair' && empty(request()->segment(3))) class="active" @endif>@lang('repair::lang.list_invoices')
  • @endif @can('repair.create')
  • segment(2) == 'repair' && request()->segment(3) == 'create') class="active" @endif>@lang('repair::lang.add_invoice')
  • @endcan
  • segment(2) == 'estimate' && empty(request()->segment(3))) class="active" @endif> @lang('repair::lang.estimates')
  • segment(2) == 'estimate' && request()->segment(3) == 'create') class="active" @endif> @lang('repair::lang.add_estimate')
  • @php $pending_appointments_count = 0; try { if (\Illuminate\Support\Facades\Schema::hasTable('repair_appointments')) { $pending_appointments_count = \Modules\Repair\Entities\RepairAppointment::where('business_id', session()->get('user.business_id')) ->where('status', 'pending') ->count(); } } catch (\Exception $e) { $pending_appointments_count = 0; } @endphp
  • segment(2) == 'appointments') class="active" @endif> @lang('repair::lang.appointments') @if($pending_appointments_count > 0) {{ $pending_appointments_count }} @endif
  • @if(auth()->user()->can('brand.view') || auth()->user()->can('brand.create'))
  • segment(1) == 'brands') class="active" @endif>@lang('brand.brands')
  • @endif @if (auth()->user()->can('edit_repair_settings'))
  • segment(1) == 'repair' && request()->segment(2) == 'repair-settings') class="active" @endif>@lang('messages.settings')
  • @endif