@extends('reports.layout') @section('content') @php function fmt($amount) { return '$ ' . number_format((float)$amount, 2); } @endphp
@forelse($byPhase as $phase) @php $remaining = (float)($phase['total'] ?? 0) - (float)($phase['received'] ?? 0); @endphp @empty @endforelse
فاز تعداد فروشات مجموع فروشات تادیه شده باقیمانده
{{ $phase['phase'] ?? '-' }} {{ $phase['count'] ?? 0 }} {{ fmt($phase['total'] ?? 0) }} {{ fmt($phase['received'] ?? 0) }} {{ fmt($remaining) }}
داده‌ای ثبت نشده است
مجموع {{ $byPhase->sum('count') }} {{ fmt($byPhase->sum('total')) }} {{ fmt($byPhase->sum('received')) }} {{ fmt($byPhase->sum('total') - $byPhase->sum('received')) }}
@endsection