@extends('layouts.app') @section('title',$document->number.' | BASCORE') @section('content') @php $isQuote = $document->type === 'quotation'; @endphp

{{ $document->number }}

{{ $document->customer->customer_name }} ยท {{ $document->issue_date->format('d M Y') }}
EditDownload PDF

Customer

{{ $document->customer->customer_name }}
{{ $document->customer->company_name }}
{{ $document->customer->address }}
TRN: {{ $document->customer->trn ?: '-' }}

Summary

Status@include('components.status',['status'=>$document->status])
SubtotalAED {{ number_format($document->subtotal,2) }}
VATAED {{ number_format($document->vat_total,2) }}
Grand TotalAED {{ number_format($document->grand_total,2) }}
@unless($isQuote)
Balance DueAED {{ number_format($document->balance_due,2) }}
@endunless

Line Items

@foreach($document->items as $line)@if($line->by_others)@else@endif@endforeach
ItemDescriptionQtyUnitDiscountVATTotal
{{ $line->item->item_name ?? 'Custom' }}{{ $line->description }}{{ $line->quantity }}By OthersAED {{ number_format($line->unit_price,2) }}AED {{ number_format($line->discount,2) }}AED {{ number_format($line->vat_amount,2) }}AED {{ number_format($line->line_total,2) }}
@if($document->scope_of_work)

Scope of Work

{{ $document->scope_of_work }}

@endif @endsection