@extends('layouts.layoutMaster')
@section('title', 'Customer Detail')
@php
$breadcrumbs = [
['url' => route('dashboard'), 'label' => 'Dashboard'],
['url' => route('customer.index'), 'label' => 'Customer'],
['url' => route('customer.show', ['customer' => $model->id]), 'label' => $model->full_name],
];
@endphp
@section('content')
Basic Information
| Full Name |
{{ $model->full_name }} |
| Email Address |
{{ $model->email ?: '-' }} |
| Phone Number |
{{ $model->phone }} |
| Address |
{{ $model->address }} |
PIC (Person in Charge)
| PIC Name |
{{ $model->pic_name }} |
| PIC Phone |
{{ $model->pic_phone }} |
Financial & Tax Information
| Payment Terms (Days) |
{{ $model->term_of_payment }} |
| Credit Limit |
{{ \App\Helpers\Helpers::formatCurrency($model->credit_limit ?: 0, 2) }} |
| NPWP Number |
{{ $model->npwp_no ?: '-' }} |
| PPN (VAT) |
{{ $model->is_ppn ? 'Yes' : 'No' }}
|
| PPh (Income Tax) |
{{ $model->is_pph ? 'Yes' : 'No' }}
|
Created: {{ $model->created_at?->format('d/m/Y H:i') ?? '-' }}
@if ($model->createdBy)
by {{ $model->createdBy->name }}
@endif
Last Updated: {{ $model->updated_at?->format('d/m/Y H:i') ?? '-' }}
@if ($model->updatedBy)
by {{ $model->updatedBy->name }}
@endif
| No |
Code |
Invoice Date |
Sales Person |
Total |
Status |
@forelse($model->quotations as $index => $quotation)
| {{ $index + 1 }} |
@can('quotation.show')
{{ $quotation->code }}
@else
{{ $quotation->code }}
@endcan
|
{{ $quotation->invoice_date?->format('d/m/Y') ?? '-' }} |
{{ $quotation->sales->name ?? '-' }} |
{{ \App\Helpers\Helpers::formatCurrency($quotation->grand_total ?: 0, 2) }} |
{{ strtoupper($quotation->status) }}
|
@empty
| No quotations available |
@endforelse
@if($model->quotations->count() > 0)
| TOTAL |
{{ \App\Helpers\Helpers::formatCurrency($model->quotations->sum('grand_total'), 2) }} |
|
@endif
| No |
Code |
Quotation |
Invoice Date |
Sales Person |
Total |
Status |
@forelse($model->salesOrders as $index => $salesOrder)
| {{ $index + 1 }} |
@can('sales-order.show')
{{ $salesOrder->code }}
@else
{{ $salesOrder->code }}
@endcan
|
@if($salesOrder->parentTransaction)
{{ $salesOrder->parentTransaction->code }}
@else
-
@endif
|
{{ $salesOrder->invoice_date?->format('d/m/Y') ?? '-' }} |
{{ $salesOrder->sales->name ?? '-' }} |
{{ \App\Helpers\Helpers::formatCurrency($salesOrder->grand_total ?: 0, 2) }} |
{{ strtoupper($salesOrder->status) }}
|
@empty
| No sales orders available |
@endforelse
@if($model->salesOrders->count() > 0)
| TOTAL |
{{ \App\Helpers\Helpers::formatCurrency($model->salesOrders->sum('grand_total'), 2) }} |
|
@endif
@endsection