@extends('master.app') @section('title', 'customer') @section('body')
@include('purchase.suppliers.bills.tread.next-header-form') @include('purchase.suppliers.bills.tread.next-item-table')
Invoice Details
@csrf @method('post')
Invoice Number
Title
@if ($bdate == 1)
Date
@else
Date
@endif
Choose Currency
@foreach ($currencies as $row)
id == $bill->currency_id) {{ 'selected' }} @endif> {{ $row->title_dr }}
@endforeach
Exchange Rate
@php $total = ''; if ($bill_items->sum('total') == 0) { $total = $bill->grand_total; } else { $total = $bill_items->sum('total') - $bill->discount; } @endphp
Total
Payment
@php $dr = $bill->payment; $i_total = $bill->grand_total; $balance = $i_total - $dr; @endphp
Balance
Define Transaction Type
transaction_id == 1) {{ 'selected' }} @endif> Cash
transaction_id == 2) {{ 'selected' }} @endif> Bank
transaction_id == 3) {{ 'selected' }} @endif> Sarafi
Payment By
Define Target Type
c_target == 1) {{ 'selected' }} @endif> Target Cash Yes
c_target == 2 || $bill->c_target == null) {{ 'selected' }} @endif> Target Cash NO
Edit
@endsection @section('pageJs') @endsection