@props(['data']) @php $hasAlerts = ($data['count'] ?? 0) > 0; @endphp @if($hasAlerts)
{{ $data['count'] }} unpaid phone {{ Str::plural('order', $data['count']) }}
${{ number_format($data['total_owing'], 2) }} total outstanding
@foreach($data['orders'] as $o)
{{ $o['invoice_number'] }}
${{ number_format($o['total'], 2) }} {{ $o['created_at'] }}
@endforeach
@endif