@extends('layouts.app') @section('title', __('dashboard.sidebar_customers')) @section('page_heading', __('dashboard.sidebar_customers')) @section('content') @php $currentState = $state ?? request('state', 'active'); $totalCustomers = \App\Models\User::where('type','customer')->count(); $totalWithRes = \App\Models\User::where('type','customer')->whereHas('customer_reservations')->count(); $totalWithSales = \App\Models\User::where('type','customer')->whereHas('customer_purchases')->count(); @endphp {{-- KPIs --}}
| {{ $h }} | @endforeach|||||
|---|---|---|---|---|---|
| {{ $cust->id }} |
{{ mb_substr($cust->name,0,1) }}
{{ $cust->name }}
@if($cust->trashed())
محذوف
@endif
|
@foreach(array_filter([[$cust->phone,$phone],[$cust->other_phone,$phone2]]) as [$raw,$wa]) @if($raw) @endif @endforeach @if(!$cust->phone && !$cust->other_phone)—@endif | {{ $cust->governorate ?: '—' }} | {{ $cust->created_at->format('Y-m-d') }} |
@canany(['view customers','edit customers','delete customers'])
|