@extends('layouts.app') @section('title',$note->note_number) @section('page_title','Adjustment Note') @section('content') @php($s=$note->status instanceof \App\Enums\DocumentStatus?$note->status->value:$note->status)

{{ $note->note_number }}

{{ ucfirst($note->side) }} {{ ucfirst($note->note_type) }} Note ยท {{ ucwords(str_replace('_',' ',$s)) }}

BackPrintPDF@if(in_array($s,['draft','rejected']))Edit@endif
Taxable Amount
AED {{ number_format((float)$note->taxable_total,2) }}
VAT Adjustment
AED {{ number_format((float)$note->vat_total,2) }}
Note Total
AED {{ number_format((float)$note->grand_total,2) }}
Party
{{ $note->party?->legal_name }}
Date
{{ $note->note_date->format('d M Y') }}
Original Document
{{ $note->invoice?->invoice_number ?? $note->bill?->bill_number }}
Reason Code
{{ ucwords(str_replace('_',' ',$note->reason_code)) }}
Reason
{{ $note->reason }}
@foreach($note->items as $i)@endforeach
DescriptionQtyRateTaxableVATTotal
{{ $i->description }}{{ $i->quantity }}{{ number_format((float)$i->unit_rate,2) }}{{ number_format((float)$i->taxable_amount,2) }}{{ number_format((float)$i->vat_amount,2) }}{{ number_format((float)$i->line_total,2) }}
@include('components.workflow-actions',['document'=>$note,'routePrefix'=>'notes','permissionPrefix'=>'adjustment_notes','status'=>$s,'postLabel'=>'Post Adjustment']) @endsection