@php // Fallback variable mapping to prevent Undefined Variable exceptions $total_obf = $total_obf ?? ($row_data ?? 0); $tl_pending = $tl_pending ?? ($row_approved ?? 0); $sm_pending = $sm_pending ?? 0; $gm_pending = $gm_pending ?? 0; $accounts_pending = $accounts_pending ?? 0; $all_payment_done = $all_payment_done ?? ($payment ?? 0); $invoice_create = $invoice_create ?? 0; $delivered = $delivered ?? ($delivered ?? 0); $total_inventory = $total_inventory ?? ($inventory_data ?? 0); $live_inventory = $live_inventory ?? 0; $transit_inventory = $transit_inventory ?? 0; $customer_alloted = $customer_alloted ?? ($allocated ?? 0); $dealer_alloted = $dealer_alloted ?? 0; $pdi_hold = $pdi_hold ?? 0; @endphp @extends('template.app') @section('meta') @endsection @section('title') Dashboard @endsection @section('styles') @endsection @section('content') @if(auth()->user()->name_of_company)
@csrf @method('POST') @if(session('message'))
{{ session('message') }}
@endif
@else
@if(!in_array(auth()->user()->roles[0]['name'], ['KEC', 'Team leader']))
REPORTs
@if(auth()->user()->can('day-book-report')) @endif @if(auth()->user()->can('booking-retail-report')) @endif
@endif @if(!in_array(auth()->user()->roles[0]['name'], ['KEC', 'Team leader']))
@endif
Branch Wise OBF
Car Model Wise OBF
Fuel Type OBF
Inventory Type
Model Wise Inventory
Fuel Type Inventory
@endif @endsection @section('scripts') @endsection