@can('dashboard-counter') @if (checkSettings('free_client') == 'enable') @can('free-client') @endcan @endif @can('leftclient') @if (checkSettings('remove_left_client_from_dashboard') == 'enable') @else @php $deactiveClient = $clientCount->where('clients_status', 'deactive')->first()->total ?? 0; $totalleftClient = $deactiveClient + $deleteClients; @endphp @endif @endcan {{-- @dd($deleteClients) --}} @can('show-reseller-cost') @if (auth()->user()->hasRole(['Reseller Admin', 'Reseller'])) @endif @endcan @endcan @can('show-client-count-expire-date') @endcan @can('dashboard-billing-info') @if (globalPermission('day-to-day-billing-dashboard')) @can('d-2-d-admin-dashboard') @endcan @else @endif {{-- --}} @php $isBillingDashboard = globalPermission('day-to-day-billing-dashboard'); $isDashboardCounter = auth()->user()->can('d-2-d-admin-dashboard'); if ($isBillingDashboard && !$isDashboardCounter) { $link = route('paymentReport'); $value = round($thisMonthBillCollection) ?? 0; } else { $link = route('bill-generate'); $value = round($thisMonthBillPaid) - round($currentMonthDiscount) + round($resellerCurrentMonthCollection) ?? 0; } @endphp @if (globalPermission('day-to-day-billing-dashboard')) @can('d-2-d-admin-dashboard') @endcan @else @endif @if (globalPermission('day-to-day-billing-dashboard')) @can('d-2-d-admin-dashboard') @endcan @else @endif @endcan