@extends('master.app') @section('title', 'customer') @section('body') @include('purchase.bills.next-header-form') @include('purchase.bills.next-item-table') Invoice Details @csrf @method('put') Choose Supplier @foreach ($suppliers as $row) id == $bill->supplier_id) {{ 'selected' }} @endif> {{ $row->name }} @endforeach Invoice Number Title Date 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