@extends('layouts.layout') @section('title', 'Reports :: Transaction History') @section('content')

Transaction History

@csrf
Users
Payment Mode
Scheme
Payment Date
@if(Session::has('message')) @endif @if(count($payment_history)>0) @php $cardamt=0; $cash=0; $internetbanking=0; $cheque=0; $debitcard=0; $paytm=0; $others=0; @endphp @foreach($payment_history as $key=>$item) @php $userinfo = DB::table('users')->where('id',$item->user_id)->first(); $chitdetailinfo = DB::table('chit_details')->where('id',$item->chit_detail_id)->first(); //print_r($chitdetailinfo); exit; $chitinfo = ''; if(isset($chitdetailinfo->scheme_id) && isset($chitdetailinfo->group_id)) { $chitinfo = DB::table('chit_scheme')->where('scheme_id',$chitdetailinfo->scheme_id)->where('id',$chitdetailinfo->group_id)->first(); } if(isset($chitdetailinfo->scheme_id)) { $chitinfo = DB::table('chit_scheme')->where('scheme_id',$chitdetailinfo->scheme_id)->first(); } @endphp @endforeach @if(($cardamt+$debitcard)>0) @endif @if($cash>0) @endif @if($internetbanking>0) @endif @if($cheque>0) @endif @if($paytm>0) @endif @if($others>0) @endif @else @endif
# Group RegNo ManualReceipt Amount PaymentDate Weight Ins ModePay Remarks EmpId CustName MobileNumber Address 1 Address 2 Bank Branch ChqNo ChqDate
{{ $key+1 }} @if(isset($chitinfo->chit_name)) {{ $chitinfo->chit_name }} @endif @if(isset($chitdetailinfo->regno)) {{ $chitdetailinfo->regno }} @endif @if($item->is_same_month=='1') @endif {{ $item->bill_no }} {{ number_format($item->amount) }} {{ date("d/m/Y",strtotime($item->payment_date))}} {{ number_format($item->gold_weight,3) }} {{ $item->no_of_installments }} {{$item->payment_mode}} @php if($item->payment_mode=="Card") { $cardamt = $cardamt+$item->amount; } if($item->payment_mode=="Cash") { $cash = $cash+$item->amount; } if($item->payment_mode=="Internet Banking" || $item->payment_mode=="Offline Payment") { $internetbanking = $internetbanking+$item->amount; } if($item->payment_mode=="Cheque") { $cheque = $cheque+$item->amount; } if($item->payment_mode=="Debit Card") { $debitcard = $debitcard+$item->amount; } if($item->payment_mode=="Others") { $others = $others+$item->amount; } if($item->payment_mode=="Paytm") { $paytm = $paytm+$item->amount; } @endphp @if($item->transaction_id) {{ $item->transaction_id }} @endif
@if($item->bank_name) {{ $item->bank_name }} @endif
@if(isset($userinfo->name)) {{ $userinfo->name }} @endif @if(isset($userinfo->phone_no)) {{ $userinfo->phone_no }} @endif @if(isset($userinfo->address)) {{ $userinfo->address }} @endif @if(isset($userinfo->address1)) {{ $userinfo->address1 }} @endif @if($item->bank_name) {{ $item->bank_name }} @endif @if($item->cheque_no) {{ $item->cheque_no }} @endif @if($item->cheque_date && $item->cheque_date!='0000-00-00') {{ date("d/m/Y",strtotime($item->cheque_date))}} @endif
Total Card Payment {{number_format($cardamt+$debitcard)}}
Total Cash Payment {{number_format($cash)}}
Total Internet Banking Payment {{number_format($internetbanking)}}
Total Cheque Payment {{number_format($cheque)}}
Total Paytm Payment {{number_format($paytm)}}
Total Others Payment {{number_format($others)}}

No records found!

@endsection