@extends('layouts.app') @section('title', $customer->name) @section('page-title', $customer->name) @section('content')
← Back to Customers
{{-- Stats --}}

₹{{ number_format($totalBilled, 2) }}

Total Billed

₹{{ number_format($totalPaid, 2) }}

Total Paid

₹{{ number_format($outstanding, 2) }}

Outstanding

{{-- Profile --}}

Contact Info

@if($customer->phone)
Phone{{ $customer->phone }}
@endif @if($customer->email)
Email{{ $customer->email }}
@endif @if($customer->gstin)
GSTIN{{ $customer->gstin }}
@endif @if($customer->billing_address)
Address {{ $customer->billing_address }}, {{ $customer->billing_city }} — {{ $customer->billing_pincode }}
@endif
{{-- Invoice History --}}

Invoice History

@forelse($invoices as $inv) @empty @endforelse
Invoice # Date Amount Status
{{ $inv->invoice_number }} {{ $inv->invoice_date->format('d M Y') }} ₹{{ number_format($inv->total_amount, 2) }} {{ ucfirst($inv->status) }}
No invoices yet
@if($invoices->hasPages())
{{ $invoices->links() }}
@endif
@endsection