@if(!empty($invoiceData))
@php
if($type == 0 && $invoiceData->status == 2){
$cls = 'info_status';
$msg = __('adminWords.pending');
}elseif($type == 1){
$cls = 'success_status';
$msg = __('adminWords.success') ;
}else{
$cls = 'warning_status';
$msg = __('adminWords.cancelled');
}
@endphp
@php
if($type == 0){
$getPlan = select(['column' => '*', 'table' => 'plans', 'where' => ['id' => $invoiceData->plan_id], 'limit' => 1]);
$planData = [];
}else{
$getPlan = [];
$planData = select(['column' => '*', 'table' => 'user_purchased_plans', 'where' => ['user_id' => $invoiceData->user_id, 'order_id' => $order_id], 'order'=>['id','desc'], 'limit' => 1 ]);
}
$getUserDetail = select(['column' => 'billing_detail', 'table' => 'users', 'where' => ['id' => $invoiceData->user_id], 'limit' => 1]);
$paymentData = json_decode($invoiceData->payment_data)[0];
@endphp
{{ isset($settings['w_title']) ? ucfirst($settings['w_title']) : __('adminWords.miraculous') }}
@if(sizeof($invoice_setting) > 0 && $invoice_setting[0]->invoice_data != '')
@php $detail = json_decode($invoice_setting[0]->invoice_data); @endphp
{{ $detail->address1 }}
{{ $detail->address2 }}
@endif
{{ __('adminWords.invoice') }}
{{ __('adminWords.number') }} : {{ 'INV'.'-'.$invoiceData->id.'-'.date('Ymd',strtotime($invoiceData->created_at)) }}
{{ date('d F, Y', strtotime($invoiceData->created_at)) }}
{{ $paymentData->currency.$paymentData->amount }}
@if(sizeof($getUserDetail) > 0 && $getUserDetail[0]->billing_detail != '')
@php $billingDetail = json_decode($getUserDetail[0]->billing_detail); @endphp
{{ __('frontWords.bill_to') }}
{{ ucfirst($billingDetail->billing_name) }}
- {{ $billingDetail->billing_address }}
- {{ $billingDetail->billing_contact }}
- {{ $billingDetail->billing_email }}
@endif
{{ __('adminWords.payment_method') }}
.'.png') }})
@php
$exp = explode('_',$paymentData->payment_gateway);
@endphp
{{ __('adminWords.via') }} {{ucfirst($exp[0]).(isset($exp[1]) ? ' '.$exp[1] : '' )}}
| {{ __('adminWords.id') }} |
{{ __('adminWords.image') }} |
{{ __('adminWords.plan') }} |
{{ __('adminWords.quantity') }} |
{{ __('adminWords.price') }} |
{{ __('adminWords.txn_date') }} |
@php
if(sizeof($planData) > 0){
$planDetail = json_decode($planData[0]->plan_data);
$paymentData = json_decode($planData[0]->payment_data);
@endphp
| 1 |
 }}) |
{{ $planDetail->plan_name }} |
1 |
{{ $planData[0]->currency.$paymentData[0]->amount }} |
{{ date('d F, Y @ h:i A', strtotime($planData[0]->created_at)) }} |
@php
}else if(sizeof($getPlan) > 0){
$plan_detail = json_decode($invoiceData->payment_data);
@endphp
| 1 |
![{{ $getPlan[0]->plan_name }}]({{ asset('images/plan/'.$getPlan[0]->image) }}) |
{{ $getPlan[0]->plan_name }} |
1 |
{{ $plan_detail[0]->currency.$plan_detail[0]->amount }} |
{{ date('d F, Y @ h:i A', strtotime($invoiceData->created_at)) }} |
@php }
@endphp
@if(sizeof($planData) > 0 || sizeof($getPlan) > 0)
@php if(sizeof($planData) > 0 ){
$payment_data = json_decode($planData[0]->payment_data);
}else{
$payment_data = json_decode($invoiceData->payment_data);
}
@endphp
| {{ __('adminWords.total_price') }} : |
{{ ((sizeof($planData) > 0) ? $planData[0]->currency : $payment_data[0]->currency).$payment_data[0]->plan_exact_amount }} |
| {{ __('adminWords.total_tax') }} ({{ $payment_data[0]->taxPercent }}%) : |
{{ '+ '.((sizeof($planData) > 0) ? $planData[0]->currency : $payment_data[0]->currency).$payment_data[0]->taxAmount }} |
| {{ __('adminWords.coupon_discount') }} : |
{{ '- '.((sizeof($planData) > 0) ? $planData[0]->currency : $payment_data[0]->currency).$payment_data[0]->discount }} |
{{ __('adminWords.payable_amnt') }} : |
{{ ((sizeof($planData) > 0) ? $planData[0]->currency : $payment_data[0]->currency).$payment_data[0]->amount }} |
@endif
@if(sizeof($invoice_setting) > 0)
@endif