@extends('adminlte::page') @section('title', 'NIR Queries') @section('content_header')

NRI Queries

Paid Verified Flag Add Lead Generate Checkout Link
@stop @section('content')
@php $pay_filter = ""; if(request()->route('category')){ $pay_filter = request()->route('category'); } @endphp @if (!empty($payments)) @php $pg_no = 0; if(isset($_GET['page'])) { $pg_no = $_GET['page']; $pg_no = $pg_no - 1; } $pgNo = ($pg_no * 20); $s_no = $pgNo + 1; $k = 0; @endphp @foreach ($payments as $email => $entries) @php $main = $entries->first(); //echo "
"; print_r($main); exit;
							@endphp

							@php //echo "
"; print_r($res); exit; @endphp
							  
                @php 
                  $is_show = 0;
                  $req_count = $main->appointments;
                @endphp

                @foreach ($main->appointments as $key => $app)
                  @if($is_show == 0)
                    @if($app->status == 1) 
                      @php $serv_title = "";
					  if(isset($app->service->service_page_icon)) { $serv_title = $app->service->service_page_icon->title; } else { $serv_title = $app->service->menu_title; }  @endphp
                      @php $is_show = 1; @endphp 
                      
@endif @endif @endforeach @if($is_show == 0) @endif @php $no++; $s = 1; @endphp @if(count($main->appointments) > 1) @foreach ($main->appointments as $key => $app) @php $s++; @endphp @endforeach @endif @php $k++; @endphp @endforeach @endif
Serial No Category Service Email Phone Date Total Requests Paid Status Payment Hit Status Applications Verify/Flag/Test User Link
{{ $s_no++; }} {{ optional($app->category)->category_title }} {{$serv_title}} {{$app->email}} {{$app->mobile_number ?? 'N/A'}} {{ $app->created_at->format('d-m-Y H:i:s') ?? 'N/A' }} 1) style="cursor:pointer;" onclick="show_bw({{$k}},'{{$app->email}}');" @endif>@if(count($req_count) > 1) {{ count($req_count) }} @else {{ count($req_count) }} @endif @if($app->status == '1') Paid @else Unpaid @endif @if($app->status == '1') @if($app->paypal != null) @php $jsonData = json_decode($app->paypal, JSON_PRETTY_PRINT); if($jsonData != null and count($jsonData)>0) { if (array_key_exists("payer", $jsonData)) { echo "PayPal"; } else if (array_key_exists("gid", $jsonData)) { echo "PayGlocal"; } else { echo "Rozarpay"; } } else { if(str_contains($app->paypal, "gl_")) { echo "PayGlocal"; } else {echo "PayPal";} } @endphp @else Manual @endif @else @if($app->is_pay_hit == 1) Yes @else No @endif @endif is_verified == 1 ? 'checked' : '' }}> is_verified == 2 ? 'checked' : '' }}> is_verified == 3 ? 'checked' : '' }}>
{{ $s_no++; }} {{ optional($main->category)->category_title }} @if(isset($main->service->service_page_icon)) {{ $main->service->service_page_icon->title }} @else {{$main->service->menu_title}} @endif {{$main->email}} {{$main->mobile_number ?? 'N/A'}} {{ $main->created_at->format('d-m-Y H:i:s') ?? 'N/A' }} appointments) > 1) style="cursor:pointer;" onclick="show_bw({{$k}},'{{$main->email}}');" @endif> @if(count($req_count) > 1) {{ count($main->appointments) }} @else {{ count($main->appointments) }} @endif @if($main->status == 1) Paid @else Unpaid @endif @if($main->is_pay_hit == 1) Yes @else No @endif is_verified == 1 ? 'checked' : '' }}> is_verified == 2 ? 'checked' : '' }}> is_verified == 3 ? 'checked' : '' }}>
{{-- $payments->withQueryString()->links('pagination::bootstrap-4') --}}
{!! $payments->links('pagination::bootstrap-5') !!}
@section('css') @stop @section('js') @stop @stop