@extends('master.app') @section('title', 'Edit Supplier Advance') @section('body')
{{-- TOP BAR --}}
Edit Supplier Advance
Update advance record & target cash journal
@include('general.valert')
@csrf @method('PUT')
{{-- LEFT --}}
Advance Information
Edit
@if ($bdate == 1) @else
@endif
Back to List
{{-- RIGHT SUMMARY --}}
Quick Summary
@php $cur = $data->currency->title_en ?? $data->currency->title_ps ?? $data->currency->title_dr ?? ''; $supplierName = $data->supplier->name ?? 'N/A'; @endphp
  • Number {{ $data->invoice_number }}
  • Supplier {{ $supplierName }}
  • Amount {{ number_format((float)$data->amount, 2) }} {{ $cur }}
  • Date {{ $data->date }}
  • Target Cash {{ (int)($data->c_target ?? 2) === 1 ? 'Yes' : 'No' }}
  • Ex Rate {{ $data->ex_rate ?? 1 }}
Changing currency (ID!=1) will show exchange rate.
{{-- row --}}
@endsection @section('pageJs') @endsection