@extends('admin.layouts.app') @section('content')

{{ $pageTitle }}

@foreach($orders as $order) @php $itemPrice = $order->getItemPrice(); @endphp @endforeach
{{ trans('admin/main.user') }} {{ trans('update.installment_plan') }} {{ trans('update.product') }} {{ trans('financial.total_amount') }} {{ trans('update.upfront') }} {{ trans('update.installments_count') }} {{ trans('update.installments_amount') }} {{ trans('update.request_date') }} {{ trans('admin/main.status') }} {{ trans('admin/main.actions') }}
{{ $order->user->full_name }}
{{ $order->user->full_name }}
@if($order->user->mobile)
{{ $order->user->mobile }}
@endif @if($order->user->email)
{{ $order->user->email }}
@endif
{{ $order->selectedInstallment->installment->title }} {{ trans('update.target_types_'.$order->selectedInstallment->installment->target_type) }}
@if(!empty($order->webinar_id)) #{{ $order->webinar_id }}-{{ !empty($order->webinar) ? $order->webinar->title : '' }} {{ trans('update.target_types_courses') }} @elseif(!empty($order->bundle_id)) #{{ $order->bundle_id }}-{{ !empty($order->bundle) ? $order->bundle->title : '' }} {{ trans('update.target_types_bundles') }} @elseif(!empty($order->product_id)) #{{ $order->product_id }}-{{ !empty($order->product) ? $order->product->title : '' }} {{ trans('update.target_types_store_products') }} @elseif(!empty($order->subscribe_id)) {{ trans('admin/main.purchased_subscribe') }} {{ trans('update.target_types_subscription_packages') }} @elseif(!empty($order->registration_package_id)) {{ trans('update.purchased_registration_package') }} {{ trans('update.target_types_registration_packages') }} @else --- @endif {{ handlePrice($order->selectedInstallment->totalPayments($itemPrice)) }} @if(!empty($order->selectedInstallment->upfront)) {{ ($order->selectedInstallment->upfront_type == 'percent') ? $order->selectedInstallment->upfront.'%' : handlePrice($order->selectedInstallment->upfront) }} @else -- @endif {{ $order->selectedInstallment->steps_count }} @php $stepsFixedAmount = $order->selectedInstallment->steps->where('amount_type', 'fixed_amount')->sum('amount'); $stepsPercents = $order->selectedInstallment->steps->where('amount_type', 'percent')->sum('amount'); @endphp {{ $stepsFixedAmount ? handlePrice($stepsFixedAmount) : '' }} @if($stepsPercents) {{ $stepsFixedAmount ? ' + ' : '' }}{{ $stepsPercents }}% @endif {{ dateTimeFormat($order->created_at, 'j M Y') }} @if($order->status == "pending_verification") {{ trans('update.pending_verification') }} @elseif($order->status == "open") {{ trans('financial.approved') }} @elseif($order->status == "rejected") {{ trans('public.rejected') }} @elseif($order->status == "canceled") {{ trans('public.canceled') }} @elseif($order->status == "refunded") {{ trans('update.refunded') }} @endif
@endsection