@extends('master.app') @section('title', 'customer') @section('body')
@if ($bill->type_id == 1) @include('sale.retail_bills.next-header-form') @include('sale.retail_bills.next-item-table') @else @include('sale.retail_bills.no_stock.next-header-form') @include('sale.retail_bills.no_stock.next-item-table') @endif

Invoice Statement

@include('general.valert')
@method('put') @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'); } $dr = $bill->received + $bill->discount; $balance = $t_amount - $dr; @endphp
@endsection @section('pageJs') @include('sale.retail_bills.script') @endsection