@if ($canSeeOrders) @error('phone') @enderror @if ($orders)
@if ($customer || $orders->total()) {{ $customer?->name ?? $orders->first()?->customer_name ?? $searchedPhone }}

{{ $searchedPhone }} · {{ $orders->total() }} đơn hàng

@if ($customerUrl) Mở hồ sơ khách hàng @endif
    @foreach ($orders as $order)
  • Đơn #{{ $order->id }} @if ($orders->onFirstPage() && $loop->first) Mới nhất @endif {{ $order->created_at?->format('d/m/Y H:i') }} · {{ number_format($order->subtotal, 0, ',', '.') }} ₫
    {{ \App\Support\OrderStatuses::label($order->status) }} @if (\App\Filament\Resources\Orders\OrderResource::canEdit($order)) Xem đơn @endif
  • @endforeach
{{ $orders->links() }} @else

Chưa tìm thấy khách hoặc đơn hàng cho số {{ $searchedPhone }}.

@endif
@endif
Số đơn đã giao
{{ number_format($summary->delivered_count, 0, ',', '.') }}
Thành tiền đã giao
{{ number_format($summary->delivered_total, 0, ',', '.') }} ₫
Tiền cọc ghi nhận
{{ number_format($summary->deposits, 0, ',', '.') }} ₫
@if (\App\Filament\Pages\OrderReports::canAccess())
Xem thống kê đơn hàng
@endif
@endif @if ($canSeeConsultations)
    @forelse ($consultations as $request)
  • {{ $request->customer_name }} {{ $request->phone }} · {{ $request->created_at?->format('d/m/Y H:i') }}
    {{ \App\Filament\Resources\Consultations\ConsultationResource::STATUSES[$request->status] ?? $request->status }} @if (\App\Filament\Resources\Consultations\ConsultationResource::canEdit($request)) Xem yêu cầu @endif
  • @empty
  • Chưa có yêu cầu tư vấn.
  • @endforelse
Xem tất cả yêu cầu
@endif