@extends('layouts.admin') @php $isEdit = isset($debitNote) && $debitNote !== null; @endphp @section('title', $isEdit ? 'Edit Debit Note' : 'New Debit Note') @section('page-title', $isEdit ? 'Edit Debit Note' : 'New Debit Note') @push('styles') @endpush @section('breadcrumbs') Debit Notes chevron_right @if($isEdit) {{ $debitNote->debit_note_number }} chevron_right Edit @else New Debit Note @endif @endsection @section('content')
@csrf @if($isEdit) @method('PUT') @endif

{{ $isEdit ? 'Edit Debit Note' : 'New Debit Note' }}

@if($isEdit)
@endif
calendar_today

Bill From *

search
search
@if($isEdit && $debitNote->items->isNotEmpty()) @foreach($debitNote->items as $idx => $item) @endforeach @else @endif
Product / Service Unit Quantity Rate Discount Tax Amount Action
{{ \App\Models\Currency::formatAmount(0) }}
No Items Selected

Extra Information

Summary

Amount 0.00
Tax 0.00
Discount - 0.00

Total (Rounded) 0.00

Zero

@if($isEdit) Cancel @else Cancel @endif
@push('scripts') @if($isEdit) @php $editCompany = $debitNote->company ? [ 'id' => $debitNote->company->id, 'name' => $debitNote->company->name, 'email' => $debitNote->company->email ?? '', 'phone' => $debitNote->company->phone ?? '', 'address' => $debitNote->company->address ?? '', 'city' => $debitNote->company->city ?? '', 'state' => $debitNote->company->state ?? '', 'zip' => $debitNote->company->zip ?? '', 'country' => $debitNote->company->country ?? '', 'logo' => $debitNote->company->logo_url, 'logo_path' => $debitNote->company->logo, ] : null; $editSupplier = $debitNote->supplier ? [ 'id' => $debitNote->supplier->id, 'name' => $debitNote->supplier->name, 'email' => $debitNote->supplier->email ?? '', 'phone' => $debitNote->supplier->phone ?? '', 'address' => $debitNote->supplier->address ?? '', 'city' => $debitNote->supplier->city ?? '', 'state' => $debitNote->supplier->state ?? '', 'zip' => $debitNote->supplier->zip ?? '', 'country' => $debitNote->supplier->country ?? '', 'image' => $debitNote->supplier->image_url ?? null, 'image_path' => $debitNote->supplier->image, 'type' => 'supplier', ] : null; $editPurchase = $debitNote->purchase ? [ 'id' => $debitNote->purchase->id, 'label' => $debitNote->purchase->purchase_number, ] : null; @endphp @else @endif @endpush @endsection