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

{{ trans('admin/main.documents') }}

@if($documents->count() > 0) @foreach($documents as $document) @endforeach @endif
{{ trans('admin/main.title') }} {{ trans('admin/main.user') }} {{ trans('admin/main.tax') }} {{ trans('admin/main.system') }} {{ trans('admin/main.amount') }} {{ trans('admin/main.type') }} {{ trans('admin/main.creator') }} {{ trans('admin/main.type_account') }} {{ trans('public.date_time') }} {{ trans('public.controls') }}
@if($document->is_cashback) {{ trans('update.cashback') }} @endif @if(!empty($document->webinar_id)) @if(!$document->is_cashback) {{ trans('admin/main.item_purchased') }} @endif #{{ $document->webinar_id }}-{{ !empty($document->webinar) ? $document->webinar->title : '' }} @elseif(!empty($document->bundle_id)) @if(!$document->is_cashback) {{ trans('update.bundle_purchased') }} @endif #{{ $document->bundle_id }}-{{ !empty($document->bundle) ? $document->bundle->title : '' }} @elseif(!empty($document->product_id)) @if(!$document->is_cashback) {{ trans('update.product_purchased') }} @endif #{{ $document->product_id }}-{{ !empty($document->product) ? $document->product->title : '' }} @elseif(!empty($document->meeting_time_id)) @if(!$document->is_cashback) {{ trans('admin/main.item_purchased') }} @endif #{{ $document->meeting_time_id }} {{ trans('admin/main.meeting') }} @elseif(!empty($document->subscribe_id)) {{ trans('admin/main.purchased_subscribe') }} @elseif(!empty($document->promotion_id)) {{ trans('admin/main.purchased_promotion') }} @elseif(!empty($document->registration_package_id)) {{ trans('update.purchased_registration_package') }} @elseif($document->store_type == \App\Models\Accounting::$storeManual) {{ trans('admin/main.manual_document') }} @else @if($document->is_cashback) {{ $document->description }} @else {{ trans('admin/main.automatic_document') }} @endif @endif
@if(!empty($document->user)) {{ $document->user->full_name }} @endif @if($document->tax) @endif @if($document->system) @endif {{ handlePrice($document->amount) }} @switch($document->type) @case(\App\Models\Accounting::$addiction) {{ trans('admin/main.addiction') }} @break @case(\App\Models\Accounting::$deduction) {{ trans('admin/main.deduction') }} @break @endswitch @if($document->creator_id) {{ trans('admin/main.admin') }} @else {{ trans('admin/main.automatic') }} @endif {{ trans('admin/main.'.$document->type_account) }} {{ dateTimeFormat($document->created_at, 'j F Y H:i') }} @can('admin_documents_print') @endcan
@endsection