@extends(getTemplate() .'.panel.layouts.panel_layout') @section('content') @if($accountings->count() > 0)

{{ trans('financial.financial_documents') }}

@foreach($accountings as $accounting) @endforeach
{{ trans('public.title') }} {{ trans('public.description') }} {{ trans('panel.amount') }} ({{ $currency }}) {{ trans('public.creator') }} {{ trans('public.date') }}
@if(!empty($accounting->webinar_id) and !empty($accounting->webinar)) {{ $accounting->webinar->title }} @elseif(!empty($accounting->meeting_time_id)) {{ trans('meeting.reservation_appointment') }} @elseif(!empty($accounting->subscribe_id) and !empty($accounting->subscribe)) {{ $accounting->subscribe->title }} @elseif(!empty($accounting->promotion_id) and !empty($accounting->promotion)) {{ $accounting->promotion->title }} @elseif(!empty($accounting->registration_package_id) and !empty($accounting->registrationPackage)) {{ $accounting->registrationPackage->title }} @elseif($accounting->store_type == \App\Models\Accounting::$storeManual) {{ trans('financial.manual_document') }} @elseif($accounting->type == \App\Models\Accounting::$addiction and $accounting->type_account == \App\Models\Accounting::$asset) {{ trans('financial.charge_account') }} @elseif($accounting->type == \App\Models\Accounting::$deduction and $accounting->type_account == \App\Models\Accounting::$income) {{ trans('financial.payout') }} @else --- @endif @if(!empty($accounting->webinar_id) and !empty($accounting->webinar)) {{ $accounting->webinar->id }} @elseif(!empty($accounting->meeting_time_id) and !empty($accounting->meetingTime)) {{ $accounting->meetingTime->meeting->creator->full_name }} @elseif(!empty($accounting->subscribe_id) and !empty($accounting->subscribe)) {{ $accounting->subscribe->id }} @elseif(!empty($accounting->promotion_id) and !empty($accounting->promotion)) {{ $accounting->promotion->id }} @elseif(!empty($accounting->registration_package_id) and !empty($accounting->registrationPackage)) {{ $accounting->registrationPackage->id }} @else --- @endif
{{ $accounting->description }} @switch($accounting->type) @case(\App\Models\Accounting::$addiction) +{{ handlePriceFormat($accounting->amount) }} @break; @case(\App\Models\Accounting::$deduction) -{{ handlePriceFormat($accounting->amount) }} @break; @endswitch {{ trans('public.'.$accounting->store_type) }} {{ dateTimeFormat($accounting->created_at, 'j M Y') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'financial.png', 'title' => trans('financial.financial_summary_no_result'), 'hint' => nl2br(trans('financial.financial_summary_no_result_hint')), ]) @endif
{{ $accountings->appends(request()->input())->links('vendor.pagination.panel') }}
@endsection