@extends('layout.app') @section('content')

Purchase Edit

@csrf @method('put')
@error('invoice_no')
{{ $message }}
@enderror
@if ($purchase->document != null) @endif
{{--
--}} @php $service = App\Models\BandService::all(); @endphp
@foreach ($purchase->purchaseItem as $item) @php $value = 0; $price = $item->rate * $item->vat; $price_vat = $price / 100; $price_with_vat = $price_vat + $item->rate; $value = $price_with_vat * $item->quantity; @endphp @endforeach
Service Description From Date To Date Quantity Rate Vat Status Value Action
{{ $item->service->name ?? '' }} {{ $item->service->description ?? '' }} -
Sub Total
Paid
@php $total = $purchase->subTotal - $purchase->marketing_total; @endphp
Due
@endsection @section('ajax') @endsection