{{__('Date')}} : {{!empty($date) ? $date : \Carbon\Carbon::today()->format('Y-m-d')}}

@if(count($daily_sales) || count($customer_payments) || count($receiving_payments) || count($expenses) || count($supplier_payments) )
@csrf {{--get daily sales --}} @foreach($daily_sales as $daily_sale) @if($daily_sale->payment > '0.00' ) @elseif($daily_sale->comments == 'REFUND') @endif @endforeach {{--get daily payments for individual customer--}} @foreach($customer_payments as $customer_payment) @if($customer_payment->payment > '0.00') @endif @endforeach {{--get daily receivings--}} @foreach($receiving_payments as $receiving_payment) @if($receiving_payment->payment > '0.00') @endif @endforeach {{--get supplier payment--}} @foreach($supplier_payments as $supplier_payment) @if($supplier_payment->payment > '0.00') @endif @endforeach {{--get daily purchases for chicks--}} @foreach($expenses as $expense) @if($expense->payment > '0.00') @endif @endforeach
{{__('Income Source')}} {{__('Expense Source')}} {{__('Credit')}} {{__('Debit')}} {{__('Balance')}}
{{__('Previous Balance')}} @if(empty($exist_report)) {{currencySymbol()}} @else @if($action == 'edit') {{currencySymbol()}} @else {{ currencySymbol().$starting_balance = $exist_report->prev_balance}} @endif @endif
Sales: {{$daily_sale->sale->customer->name}} {{currencySymbol().$daily_sale->payment}}
Refund Sales: {{$daily_sale->sale->customer->name}} {{currencySymbol().$daily_sale->payment}}
Customer:{{$customer_payment->customer->name}} {{currencySymbol().number_format($customer_payment->payment)}}
Purchases: {{$receiving_payment->receiving->supplier->name}} {{currencySymbol().number_format($receiving_payment->payment)}}
Suppliers: {{$supplier_payment->supplier->name}} {{currencySymbol().number_format($supplier_payment->payment)}}
{{$expense->expense_category->name . " : " .$expense->description}} {{currencySymbol().number_format($expense->payment)}}
{{__('Total')}} {{currencySymbol().number_format( $total_credit, 2)}} {{currencySymbol().number_format($total_debit, 2)}} {{currencySymbol().number_format($starting_balance + $total_credit - $total_debit, 2)}}
@if(empty($dailyreport) || is_null($exist_report)) @elseif(!empty($exist_report) && $action == 'edit') @endif @else

{{__('No reports Available')}}

@endif