@extends('layouts.layout') @section('title', 'Transaction History') @section('content') @php $rolesArr = Auth::user()->roles; //print_r($rolesArr); $userrolename = isset($rolesArr)?$rolesArr->implode('name', ', '):''; @endphp

Transaction History

@csrf
Keyword
Scheme
Users
From Date
@if(Session::has('message')) @endif
@if(count($payment_history)>0) @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) { if($chitdetailinfo->scheme_id && $chitdetailinfo->group_id) { $chitinfo = DB::table('chit_scheme')->where('scheme_id',$chitdetailinfo->scheme_id)->where('id',$chitdetailinfo->group_id)->first(); } } @endphp @endforeach @else @endif
# Bill No Payment Date Amount Rate Weight Instalment Mode User Details Transaction Details Chit Details Action
{{ $key+1 }} @if($item->is_same_month=='1') @endif {{ $item->bill_no }} @if($item->payment_date && $item->payment_date!='0000-00-00') {{ date("d/m/Y",strtotime($item->payment_date))}} @else @if($item->created_at) {{ date("d/m/Y",strtotime($item->created_at))}} @endif @endif {{ number_format((int)$item->amount) }} {{ number_format((int)str_replace(',','',$item->gold_rate)) }} {{ number_format($item->gold_weight,3) }} {{ $item->no_of_installments }} {{$item->payment_mode}} @if(isset($userinfo->name)) Name : {{ isset($userinfo->name)?$userinfo->name:'' }} @endif @if(isset($userinfo->email))
Email : {{ $userinfo->email }} @endif @if(isset($userinfo->phone_no))
Phone No : {{ $userinfo->phone_no }} @endif
@if($item->payment_mode=='Offline Payment') @if($item->screenshot)
Screenshot : Click Here to View @endif @if($item->approved==0)
@else
@endif @else @if($item->transaction_id) Transaction ID : {{ $item->transaction_id }} @endif @if($item->cheque_no)
Cheque No : {{ $item->cheque_no }} @endif @if($item->cheque_date && $item->cheque_date!='0000-00-00')
Cheque Date : {{ $item->cheque_date }} @endif @if($item->bank_name)
Bank Name : {{ $item->bank_name }} @endif @endif
@if($chitinfo) @if($chitinfo->chit_name) Group : {{ $chitinfo->chit_name }} @endif @if($chitinfo->no_of_installment)
No.of Installment : {{ $chitinfo->no_of_installment }} @endif @endif
@if($userrolename=='Admin') @endif
{{ $payment_history->links() }}

No records found!

@endsection