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

@php $beforeclosingbal = 0; @endphp @if(!empty($Data)) @foreach($Data as $key => $value) @php $openingbal = $beforeclosingbal + ($value->OpeningBalance ? $value->OpeningBalance : 0); $Topup = $value->Topup ? $value->Topup : 0; $WalletRevert = $value->WalletRevert ? $value->WalletRevert : 0; $Purchase = isset($Data1[$key]) ? @$Data1[$key]->Purchase : 0; $Discount = isset($Data1[$key]) ? @$Data1[$key]->Discount : 0; $closingbal = ($openingbal + $Topup + $Discount) - ($Purchase+$WalletRevert); @endphp @php $beforeclosingbal = $closingbal; @endphp @endforeach @endif
Date Opening Topup WalletRevert Purchase Discount Refund RefundNew Closing
{{$value->DT}} {{$openingbal}} {{$Topup}} {{$WalletRevert}} {{$Purchase}} {{$Discount}} {{$closingbal}}
@endsection @section('footer') @parent @endsection