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

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

{{ $totalParts }} {{ trans('update.total_parts') }}
{{ $remainedParts }} {{ trans('update.remained_parts') }}
{{ handlePrice($remainedAmount) }} {{ trans('update.remained_amount') }}
{{ handlePrice($overdueAmount) }} {{ trans('update.overdue_amount') }}

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

@if(!empty($installment->upfront)) @php $upfrontPayment = $payments->where('type','upfront')->first(); @endphp @endif @foreach($installment->steps as $step) @php $stepPayment = $payments->where('selected_installment_step_id', $step->id)->where('status', 'paid')->first(); $dueAt = ($step->deadline * 86400) + $order->created_at; $isOverdue = ($dueAt < time() and empty($stepPayment)); @endphp @endforeach
{{ trans('public.title') }} {{ trans('panel.amount') }} {{ trans('update.due_date') }} {{ trans('update.payment_date') }} {{ trans('public.status') }}
{{ trans('update.upfront') }} @if($installment->upfront_type == 'percent') ({{ $installment->upfront }}%) @endif {{ handlePrice($installment->getUpfront($itemPrice)) }} - {{ !empty($upfrontPayment) ? dateTimeFormat($upfrontPayment->created_at, 'j M Y H:i') : '-' }} @if(!empty($upfrontPayment)) {{ trans('public.paid') }} @else {{ trans('update.unpaid') }} @endif
{{ $step->title }} @if($step->amount_type == 'percent') ({{ $step->amount }}%) @endif
{{ trans('update.n_days_after_purchase', ['days' => $step->deadline]) }}
{{ handlePrice($step->getPrice($itemPrice)) }} {{ dateTimeFormat($dueAt, 'j M Y') }} {{ !empty($stepPayment) ? dateTimeFormat($stepPayment->created_at, 'j M Y H:i') : '-' }} @if(!empty($stepPayment)) {{ trans('public.paid') }} @else {{ trans('update.unpaid') }} {{ $isOverdue ? "(". trans('update.overdue') .")" : '' }} @endif @if(empty($stepPayment)) @endif
@endsection @push('scripts_bottom') @endpush