@php use App\DashboardModel; $member_payment_model_inastance = new DashboardModel(); use App\HomeModel; $HomeModelModelInstance = new HomeModel(); @endphp Invoice @if(array_key_exists("plan_id", $each_member_invoice_get)) @php $plans_deatils = $member_payment_model_inastance->member_paymentplan_detail($each_member_invoice_get->subscription_id); @endphp @else @php $plans_deatils = $member_payment_model_inastance->member_paymentplan_detail($user_details->subscription_id); @endphp @endif
 
@php $social_logo = $HomeModelModelInstance->get_social_logo(); @endphp @if (!empty($social_logo)) @else @endif
INVOICE
 
@if($each_member_invoice_get->member_trans_status == 'Paid' || $each_member_invoice_get->member_trans_status == 'success' ) @else @endif
 
Invoice Id:{{ $each_member_invoice_get->invoice_id }}
 
Invoice Details:
Invoice Date:{{ date('d-m-Y', strtotime($each_member_invoice_get->plan_create_dtm)) }}
Due Date: {{ date('d-m-Y', strtotime($each_member_invoice_get->plan_create_dtm)) }}
 
Invoiced To:

@if(array_key_exists("userid", $each_member_invoice_get)) @php $user_details = $member_payment_model_inastance->get_user_details($each_member_invoice_get->userid); @endphp @endif @if(array_key_exists("address1", $each_member_invoice_get)) {{ $each_member_invoice_get->address1 }} @else {{$user_details->address1}} @endif
@if(array_key_exists("address2", $each_member_invoice_get)) {{ $each_member_invoice_get->address2 }} @else {{$user_details->address2}} @endif
@if(array_key_exists("city", $each_member_invoice_get)) {{ $each_member_invoice_get->city }} @else {{$user_details->city}} @endif
@if(array_key_exists("zip_code", $each_member_invoice_get)) {{ $each_member_invoice_get->zip_code }} @else {{$user_details->zip_code}} @endif
 
 
Transaction Summary
{{-- --}}
Transaction Date Gateway Transaction Id Amount
{{ date('d-m-Y', strtotime($each_member_invoice_get->plan_create_dtm)) }} {{ $each_member_invoice_get->source }} @if(array_key_exists("tranction_charge_id", $each_member_invoice_get)) {{ $each_member_invoice_get->tranction_charge_id }} @else @php $trans_id = $member_payment_model_inastance->get_transaction_id($each_member_invoice_get->invoice_id); @endphp {{$trans_id}}@endif {{ $each_member_invoice_get->plan_charges }}
24/02/2022 Paypal 124545456123225 3770
Subtotal: {{ $each_member_invoice_get->plan_charges }}
 
Order Summary
{{-- --}} {{-- --}}
Description Total
{{@$plans_deatils->subscription_name }} Plan {{ @$each_member_invoice_get->plan_charges}}
Subtotal: 3770
Credit: 3770
Total: {{ @$each_member_invoice_get->plan_charges}}