@extends('layouts.app') @section('title', 'Customer Details') @php $breadcrumbs = [['label' => 'Masters', 'url' => route('masters.customers.index')], ['label' => 'Customers', 'url' => route('masters.customers.index')], ['label' => $customer->name ?? '']]; @endphp @section('content')

{{ $customer->name ?? 'Customer' }}

Code: {{ $customer->code ?? '' }} | {{ ucfirst($customer->type ?? '') }}

@can('customers.edit') Edit @endcan Back
General Information
Customer Code{{ $customer->code ?? '' }}
Type
Status
Group{{ ucfirst($customer->group ?? 'Domestic') }}
Industry{{ $customer->industry ?? 'N/A' }}
Currency{{ $customer->currency->code ?? 'INR' }}
GSTIN{{ $customer->gstin ?? 'N/A' }}
PAN{{ $customer->pan ?? 'N/A' }}
IEC Code{{ $customer->iec_code ?? 'N/A' }}
Contact Information
Contact Person{{ $customer->contact_person ?? 'N/A' }}
Designation{{ $customer->designation ?? 'N/A' }}
Department{{ $customer->department ?? 'N/A' }}
Mobile{{ $customer->mobile ?? 'N/A' }}
Fax{{ $customer->fax ?? 'N/A' }}
WhatsApp{{ $customer->whatsapp ?? 'N/A' }}
Financial Information
Credit Limit₹{{ number_format($customer->credit_limit ?? 0, 2) }}
Credit Days{{ $customer->credit_days ?? 0 }} days
TDS Section{{ $customer->tds_section ?? 'N/A' }}
Outstanding₹{{ number_format($customer->outstanding ?? 0, 2) }}
Recent Shipments
View All
@forelse($customer->shipments->take(5) ?? [] as $shipment) @empty @endforelse
Shipment #DateDestinationStatus
{{ $shipment->shipment_number }} {{ $shipment->created_at->format('d M Y') }} {{ $shipment->destination_port->name ?? '' }}
No shipments found
Address
{{ $customer->address_line1 ?? '' }}
@if($customer->address_line2 ?? false){{ $customer->address_line2 }}
@endif {{ $customer->city->name ?? '' }}{{ ($customer->city ?? false) && ($customer->state ?? false) ? ', ' : '' }}{{ $customer->state->name ?? '' }}
{{ $customer->country->name ?? '' }} - {{ $customer->pincode ?? '' }}
Bank Details
Bank{{ $customer->bank_name ?? 'N/A' }}
Account No{{ $customer->bank_account ?? 'N/A' }}
IFSC{{ $customer->bank_ifsc ?? 'N/A' }}
Swift{{ $customer->swift_code ?? 'N/A' }}
Activity
Created
{{ ($customer->created_at ?? now())->format('d M Y, h:i A') }}
Last Updated
{{ ($customer->updated_at ?? now())->format('d M Y, h:i A') }}
Created By
{{ $customer->creator->name ?? 'System' }}
@can('customers.delete') @endcan
@endsection