@extends(getTemplate() .'.panel.layouts.panel_layout') @section('content') @if(!empty($overdueInstallmentsCount) and $overdueInstallmentsCount > 0)
{{ trans('update.overdue_installments') }}
{{ trans('update.you_have_count_overdue_installments_please_pay_them_to_avoid_restrictions_and_negative_effects_on_your_account',['count' => $overdueInstallmentsCount]) }}
@endif {{-- Installments Overview --}}

{{ trans('update.installments_overview') }}

{{ $openInstallmentsCount }} {{ trans('update.open_installments') }}
{{ $pendingVerificationCount }} {{ trans('update.pending_verification') }}
{{ $finishedInstallmentsCount }} {{ trans('update.finished_installments') }}
{{ $overdueInstallmentsCount }} {{ trans('update.overdue_installments') }}

{{ trans('update.my_installments') }}

@if(!empty($orders) and count($orders)) @foreach($orders as $order) @php $orderItem = $order->getItem(); $itemType = $order->getItemType(); $itemPrice = $order->getItemPrice(); @endphp @if(!empty($orderItem))
@if(in_array($itemType, ['course', 'bundle'])) @elseif($itemType == 'product') @elseif($itemType == "subscribe")
@elseif($itemType == "registrationPackage")
@endif @if($order->isCompleted()) {{ trans('update.completed') }} @elseif($order->status == "open") {{ trans('public.open') }} @elseif($order->status == "rejected") {{ trans('public.rejected') }} @elseif($order->status == "canceled") {{ trans('public.canceled') }} @elseif($order->status == "pending_verification") {{ trans('update.pending_verification') }} @elseif($order->status == "refunded") {{ trans('update.refunded') }} @endif

{{ $orderItem->title }}

@if($order->has_overdue) {{ trans('update.overdue') }} @endif
@if(!in_array($order->status, ['refunded', 'canceled']) or $order->isCompleted()) @endif
{{ trans('update.item_type') }}: {{ trans('update.item_type_'.$itemType) }}
{{ trans('panel.purchase_date') }}: {{ dateTimeFormat($order->created_at, 'j M Y H:i') }}
{{ trans('update.upfront') }}: {{ !empty($order->selectedInstallment->upfront) ? handlePrice($order->selectedInstallment->getUpfront($itemPrice)) : '-' }}
{{ trans('update.total_installments') }}: {{ trans('update.total_parts_count', ['count' => $order->selectedInstallment->steps_count]) }} ({{ handlePrice($order->selectedInstallment->totalPayments($itemPrice, false)) }})
@if($order->status == "open" or $order->status == "pending_verification")
{{ trans('update.remained_installments') }}: {{ trans('update.total_parts_count', ['count' => $order->remained_installments_count]) }} ({{ handlePrice($order->remained_installments_amount) }})
@if(!empty($order->upcoming_installment))
{{ trans('update.upcoming_installment') }}: {{ dateTimeFormat((($order->upcoming_installment->deadline * 86400) + $order->created_at), 'j M Y') }} ({{ handlePrice($order->upcoming_installment->getPrice($itemPrice)) }})
@endif @if($order->has_overdue)
{{ trans('update.overdue_installments') }}: {{ $order->overdue_count }} ({{ handlePrice($order->overdue_amount) }})
@endif @endif
@endif @endforeach
{{ $orders->appends(request()->input())->links('vendor.pagination.panel') }}
@else @include('web.default.includes.no-result',[ 'file_name' => 'webinar.png', 'title' => trans('update.you_not_have_any_installment'), 'hint' => trans('update.you_not_have_any_installment_hint'), ]) @endif
@endsection @push('scripts_bottom') @endpush