@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)