@extends('layouts.app') @section('content')

Customer Details: {{ $customer->name }}

Basic Information

Customer ID: {{ $customer->id }}

Name: {{ $customer->name }}

Contact No.: {{ $customer->mobile_no }}

Joining Date: {{ $customer->created_at ? $customer->created_at->format('d M Y') : 'N/A' }}

Service Orders

@forelse($serviceOrders as $index => $order) @empty @endforelse
Sl. Submission Date Service ID Service Name Branch Total Cost Payment Status
{{ $index + 1 }} {{ $order->submission_date ? $order->submission_date->format('d M Y') : 'N/A' }} {{ $order->service_id }} {{ $order->service_name }} {{ $order->branch_name }} {{ number_format($order->total_cost, 2) }} {{ ucfirst($order->payment_status) }}
No service orders found.

Payment History (Total Due: {{ number_format($totalDue, 2) }})

@if($totalDue > 0 && $invoices->isNotEmpty()) Make Payment @endif
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@forelse($payments as $payment) @empty @endforelse
Date Voucher ID Payment Method Paid Amount Due Amount Branch
{{ $payment->date ? $payment->date->format('d M Y') : 'N/A' }} {{ $payment->voucher_id ?? 'N/A' }} {{ ucfirst($payment->payment_method) }} {{ number_format($payment->amount, 2) }} {{ number_format($payment->due, 2) }} {{ $payment->branch_name }}
No payment history found.
@endsection