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

Payment Details

@csrf
Users
Payment Mode
Scheme
Missed Payment
@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(); $chitinfo = ''; if($chitdetailinfo->scheme_id && $chitdetailinfo->group_id) { $chitinfo = DB::table('chit_scheme')->where('scheme_id',$chitdetailinfo->scheme_id)->where('id',$chitdetailinfo->group_id)->first(); } if($chitdetailinfo->scheme_id && $chitdetailinfo->group_id) { $chitinfo = DB::table('chit_scheme')->where('scheme_id',$chitdetailinfo->scheme_id)->first(); } @endphp @endforeach @else @endif
# CustName MobileNumber Address 1 Address 2 LastPaidDate Amount RegNo ManualReceipt Weight ModePay
{{ $key+1 }} @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 {{ date("d/m/Y",strtotime($item->payment_date))}} {{ number_format($item->amount) }} @if($chitdetailinfo->regno) {{ $chitdetailinfo->regno }} @endif @if($item->is_same_month=='1') @endif {{ $item->bill_no }} {{ number_format($item->gold_weight,3) }} {{$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

No records found!

@endsection