@extends('layouts.app')
@section('title', 'تقرير العملاء')
@section('breadcrumb')
التقارير
العملاء
@endsection
@section('page_actions')
@endsection
@section('content')
| المصدر | عدد العملاء |
@forelse ($bySource as $source => $count)
| {{ \App\Models\Customer::SOURCES[$source] ?? 'غير محدد' }} |
{{ $count }} |
@empty
| لا توجد بيانات |
@endforelse
| المدينة | عدد العملاء |
@forelse ($byCity as $city => $count)
| {{ $city ?: 'غير محدد' }} |
{{ $count }} |
@empty
| لا توجد بيانات |
@endforelse
| العميل | الجوال | المسؤول |
المركبات | الاشتراكات | التذاكر |
إجمالي الفواتير | المحصّل | الرصيد |
@foreach ($rows as $c)
@php $balance = (float) $c->invoiced - (float) $c->collected; @endphp
| {{ $c->display_name }} |
{{ $c->phone }} |
{{ $c->assignee?->name ?? '—' }} |
{{ $c->vehicles_count }} |
{{ $c->subscriptions_count }} |
{{ $c->tickets_count }} |
{{ currency($c->invoiced ?? 0) }} |
{{ currency($c->collected ?? 0) }} |
{{ currency($balance) }} |
@endforeach
@endsection