@extends('master.app') @section('title', 'customer') @section('body')
@if ($bill->type_id == 1) @include('sale.customers.bills.next-header-from') @include('sale.customers.bills.next-item-table') @endif @if ($bill->type_id == 2) @include('sale.customers.bills.row-bills.next-header-form') @include('sale.customers.bills.row-bills.next-item-table') @endif

Invoice Statement

@include('general.valert')
@method('post') @csrf
@if ($bdate == 1) @else @endif
@php if ($bill_items->sum('total') == 0) { $total = $bill->grand_total; } else { $total = $bill_items->sum('total'); } @endphp
@php $t_amount = $bill_items->sum('total'); if ($t_amount == 0) { $t_amount = $bill->grand_total; } else { $t_amount = $bill_items->sum('total'); } $r_amount = $bill->received; $d_amount = $bill->discount; $rd_amount = $r_amount + $d_amount; $b_amount = $t_amount - $rd_amount; @endphp
@endsection @section('pageJs') @include('sale.customers.bills.script') @endsection