@extends('layouts.innerpage')
@section('title', 'Chit Payment')
@section('content')
Home / My Chit {{Auth::user()->phone_no}} {{Auth::user()->email}} Account Name : SHRI ARTHI JEWELLERY Account Number : 35400002403 IFSC : SBIN0003690 Bank Name : State Bank of India Branch : GANAPATHY Payable Amount : {{number_format($totprice,2)}} Payable Amount : (Transfer to Shri Arthi Jewellery) Payable Amount : {{number_format($totprice,2)}} Payable Amount : (Scan and Pay With Any UPI App) Gateway Charge (2%) : {{number_format($gatewaycharge,2)}} Payable Amount : {{number_format($payable,2)}} Gateway Charge (2%) : Payable Amount : My Chit
@else
@endif
Hi @if(Auth::user()->name!="") {{Auth::user()->name}} @else User @endif
@if(Auth::user()->phone_no!="")
@if($chitdetails->scheme_id==2)
@php
$gatewaycharge = ((2 / 100) * $totprice);
$payable = $gatewaycharge + $totprice;
@endphp
@if(($totprice>0 && $chitdetails->scheme_id == 1) || $chitdetails->scheme_id == 2)
@else
Mon
Ins Amount
Gold rate
on dateCredit
(in grams)Paid Date
Interest
Status
@endif
@if($chitdetails->scheme_id==2)
@php
$curdate = strtotime(date('d F Y'));
$payment_details_monthly = DB::table('payment_details')->where('user_id',Auth::user()->id)->where('chit_detail_id',$chitdetails->id)->groupBy(DB::raw('YEAR(payment_date)'), DB::raw('MONTH(payment_date)'))->orderBy('id','ASC')->get();
$cid = $chitdetails->id;
$amt = 0; $totamt = 0;
$wt=0; $totga = 0; $totwt = 0;
$total_interest=0; $current_interest = 0;
@endphp
@foreach($payment_details_monthly as $k => $values)
@php
$paymentmonth = date('m',strtotime($values->payment_date)); $paymentyear = date('Y',strtotime($values->payment_date));
$payment_details = DB::table('payment_details')->where('user_id',Auth::user()->id)->where('chit_detail_id',$chitdetails->id)->where(DB::raw('YEAR(payment_date)'),$paymentyear)->where(DB::raw('MONTH(payment_date)'),$paymentmonth)->orderBy('id','ASC')->get();
$paymentmonth_int = date('m',strtotime($values->payment_date." -1 month")); $paymentyear_int = date('Y',strtotime($values->payment_date." -1 month"));;
//echo "Year :".$paymentyear_int;
$payment_details_int = DB::table('payment_details')->where('approved',1)->where('user_id',Auth::user()->id)->where('chit_detail_id',$chitdetails->id)->where(DB::raw('YEAR(payment_date)'),$paymentyear_int)->where(DB::raw('MONTH(payment_date)'),$paymentmonth_int)->sum('amount');
$wt = DB::table('payment_details')->where('user_id',Auth::user()->id)->where('approved',1)->where('chit_detail_id',$chitdetails->id)->where(DB::raw('YEAR(payment_date)'),$paymentyear)->where(DB::raw('MONTH(payment_date)'),$paymentmonth)->sum('gold_weight');
$totwt = $wt+$totwt+$current_interest;
@endphp
@foreach($payment_details as $i => $item)
@php
$totamt = $totamt+$item->amount;
@endphp
Ins #
Mon Ins
Ins Amount
Gold rate
on dateCredit
(in grams)Paid Date
Status
@endforeach
@if($k>0)
@if($item->payment_date && $i==1)
@php $cdate = date("Y-m-d", strtotime($item->payment_date." -1 months")); @endphp
@endif
Payment for {{date('F Y',strtotime($item->payment_date))}}
@if($payment_details)
@else
@if($chitinsdate < $curdate)
@php $is_flag = $is_flag+1; @endphp
@endif
@endif
{{number_format($item->gold_weight,3)}}
{{date('d/m/Y',strtotime($item->payment_date))}}
@if($item->approved==0)
Waiting for Approval
@else
Paid
Print
@endif
@endif
@if($item->approved==1)
Interest capitilised for the month of {{date('F',strtotime($item->payment_date." -1 month"))}}
@php
//echo "Total Paid Amt :".$payment_details_int; echo "
";
//echo ".75% : ".$ga = ((0.75/100)*$payment_details_int); echo "
";
$ga = ((0.75/100)*$payment_details_int);
$totga = number_format(($ga/$item->gold_rate),3);
$current_interest = $totga;
$total_interest=$total_interest+($ga/$item->gold_rate);
@endphp
{{$totga}}
@endif
@if($k>0)
Gold accumulated for the month {{date('F',strtotime($item->payment_date))}}
{{number_format($wt,3)}}
@endif
@endforeach
@php
$totalbal = number_format(($totwt+$totga),3);
DB::table('chit_details')->where('id',$chitdetails->id)->update(array("total_interest"=>$totalbal));
@endphp
@else
@for($i=0;$i<=11;$i++)
@php
$insmon = date('m/Y',strtotime('+'.$i.' month', strtotime($chitdetails->joining_date)));
$curdate = strtotime(date('d F Y'));
$payment_details = DB::table('payment_details')->where('no_of_installments',$i+1)->where('user_id',Auth::user()->id)->where('chit_detail_id',$chitdetails->id)->orderBy('id','DESC')->first();
$cid = $chitdetails->id;
$amt = 0;
if($payment_details) {
$amt = isset($chitscheme->installment_amount)?$chitscheme->installment_amount:$payment_details->amount;
}
@endphp
Gold at the end of {{date('F',strtotime($item->payment_date))}}
{{number_format(($totwt+$totga),3)}}
@endfor
@endif
@if($totprice>0)
@endif
#{{$i+1}}
@if($chitdetails->joining_date)
{{date('F Y',strtotime('+'.$i.' month', strtotime($chitdetails->joining_date)))}}
@php $chitinsdate = strtotime('+'.$i.' month', strtotime($chitdetails->joining_date)); @endphp
@else
@if($payment_details && $i==1)
@php $cdate = date("Y-m-d", strtotime($payment_details->payment_date." -1 months")); @endphp
@endif
{{date('F Y',strtotime('+'.$i.' month', strtotime($cdate)))}}
@php $chitinsdate = strtotime('+'.$i.' month', strtotime($cdate)); @endphp
@endif
@if($payment_details)
@else
@if($chitinsdate < $curdate)
@php $is_flag = $is_flag+1; @endphp
@endif
@endif
@if($payment_details)
@if($payment_details) {{number_format($payment_details->gold_weight,3)}} @else - @endif
@if($payment_details) {{date('d/m/Y',strtotime($payment_details->payment_date))}} @else - @endif
@if($payment_details)
@if($payment_details->approved==0)
Waiting for Approval
@else
Paid
Print
@endif
@else
@php
$lastmon = date('m/Y',strtotime('-1 month', strtotime(date('Y-m-d'))));
@endphp
@if($insmon == date('m/Y') || $insmon == $lastmon || Auth::user()->enable_payment==1)
Pay Now
@endif
@endif
Payment Direct
You should shell out some quality time but no gateway charges u can Save 2%
Pay Using QR Code
Scan QR, Pay & Upload screenshot
Direct Bank Transfer
Pay to our Bank Account directly and upload screen shot
@if($chitdetails->scheme_id == 1)
Direct Bank Transfer
Pay to our Bank Account directly and upload screen shot
Payment via Gateway
Instant but 2% gateway charges will be collected on ur billing amount
Credit / Debit Card
Pay using Credit/Debit or International issued cards securely with our trusted payment partners
Wallets
Choose this option to place your order using digital wallet
UPI ID
Use our UPI payment options to complete your payment
Wallets
Choose this option to place your order using digital wallet
UPI ID
Use our UPI payment options to complete your payment