{{ $number }} |
{{ $quotation->running_no }} |
{{ $quotation->project->project_no }} |
{{ $quotation->project->name ?? $quotation->project->project_code }} |
{{ $quotation->client_name }} |
{{ $quotation->country_code ?? '' }}{{ str_replace("-", "",$quotation->client_contact) }} |
{{ $quotation->ic ?? '-' }} |
{{ $quotation->client_email ?? '-' }} |
{{ $quotation->road_no ?? '-' }} {{ $quotation->block_no ?? '-' }} {{ $quotation->road_name ?? '-' }} {{ $quotation->residence ?? '-' }} {{ $quotation->country_name ?? '-' }} {{ $quotation->postal_code ?? '-' }} |
{{ $quotation->date ?? '-' }} |
{{ $quotation->company->name ?? '-' }} |
{{ $quotation->paymentTerms->name ?? '-' }} |
{{ $quotation->discount ?? '-' }} |
@if ($quotation->status == 'draft')
Draf
@elseif ($quotation->status == 'requested')
Pending
@elseif ($quotation->status == 'declined')
Declined
@elseif ($quotation->status == 'approved')
Approved
@elseif ($quotation->status == 'accepted')
Accepted
@endif
|
@php
$revision = \App\Models\QuotationItem::where('quotation_id', $quotation->id)->orderBy('id', 'desc')->limit(1)->first()->revision;
if ($quotation->status == 'draft') {
if ($quotation->is_resubmit) {
echo $revision;
} else {
echo 'REV00';
}
} else {
echo $revision;
}
@endphp
|
@if (!$quotation->items->lists->isEmpty())
- Item Details - |
@else
- Empty - |
@endif
@php
$itemAmountTotal = 0;
@endphp
@forelse ($quotation->items->lists as $item)
@if ($item->tier_level == 1)