@extends('layout')
@section('title','Purchase DayBook Report')
@section('header')
@parent
@endsection
@section('navigation')
@parent
@endsection
@section('content')
@if(!empty($page_notification))
@foreach($page_notification as $key => $value)
{!! $value->content !!}
@endforeach
@endif
| Date |
Opening |
WalletTopup |
WalletRevert |
Purchase |
Discount |
Refund |
Closing |
@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
| {{$value->DT}} |
{{$openingbal}} |
{{$Topup}} |
{{$WalletRevert}} |
{{$Purchase}} |
{{$Discount}} |
|
{{$closingbal}}
|
@php
$beforeclosingbal = $closingbal;
@endphp
@endforeach
@endif
@endsection
@section('footer')
@parent
@endsection