@extends('Admin/layout') @section('title','Purchase Account Report') @section('header') @parent @endsection @section('navigation') @parent @endsection @section('content')
Sales Daybook Report
@csrf

@php $beforeclosingbal = 0; @endphp @if(!empty($Data)) @foreach($Data as $key => $value) @php $openingbal = $beforeclosingbal + ($value->OpeningBalance ? $value->OpeningBalance : 0); $Payout = $value->Payout ? $value->Payout : 0; $WalletRevert = $value->WalletRevert ? $value->WalletRevert : 0; $WalletRefund = 0; $Charge = $value->Charge ? $value->Charge : 0; $Sales = isset($Data1[$key]) ? $Data1[$key]->SalesAmount : 0; $Discount = isset($Data1[$key]) ? $Data1[$key]->SalesDiscount : 0; $closingbal = ($openingbal + $WalletRevert + $Sales + $WalletRefund) - ( $Charge + $Discount + $Payout); @endphp @php $beforeclosingbal = $closingbal; @endphp @endforeach @endif
Date Opening Payout WalletRevert WalletRefund Charge Sales Discount Reverse ReverseNew Closing
{{$value->DT}} {{$openingbal}} {{$Payout}} {{$WalletRevert}} {{$WalletRefund}} {{$Charge}} {{$Sales}} {{$Discount}} {{$closingbal}}
@endsection @section('footer') @parent @endsection