@extends('template.layouts.template-base') @section('title', 'Customer - Details') @section('styles') @endsection @section('content')
{{ $customer->user->email}}
@endif {{-- Fix #1 — check defaultAddress before accessing alternate_mobile --}} @if($customer->defaultAddress?->alternate_mobile){{ $customer->defaultAddress->alternate_mobile }}
@endif
{{ $customer->defaultAddress->address_line_1 }}
@if($customer->defaultAddress->address_line_2)
, {{ $customer->defaultAddress->address_line_2 }}
@endif
@if($customer->defaultAddress->panchayat)
{{ $customer->defaultAddress->panchayat }},
@endif
@if($customer->defaultAddress->taluk)
{{ $customer->defaultAddress->taluk }},
@endif
@if($customer->defaultAddress->district)
{{ $customer->defaultAddress->district }}
@endif
@if($customer->defaultAddress->pincode)
- {{ $customer->defaultAddress->pincode }}.
@endif
No address added yet.
{{ $billingAddress->address_line_1 }}
@if($billingAddress->address_line_2)
, {{ $billingAddress->address_line_2 }}
@endif
@if($billingAddress->panchayat)
{{ $billingAddress->panchayat }},
@endif
@if($billingAddress->taluk)
{{ $billingAddress->taluk }},
@endif
@if($billingAddress->district)
{{ $billingAddress->district }}
@endif
@if($billingAddress->pincode)
- {{ $billingAddress->pincode }}.
@endif
Same as delivery address.
@endif
Cow
{{ $customer->cow_count ?? 0 }}
Buffalo
{{ $customer->buffalo_count ?? 0 }}
Goat
{{ $customer->goat_count ?? 0 }}
| Order ID | Quantity | Order Date | Total Amount | Status | Action |
|---|
Invoice has been sent successfully
The invoice has been downloaded successfully