@extends('admin.layouts.app') @push('libraries_top') @endpush @section('content')

{{ $pageTitle }}

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

{{ $totalBundles }}

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

{{ $totalPendingBundles }}

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

{{ !empty($totalSales) ? $totalSales->sales_count : 0 }}

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

{{ (!empty($totalSales) and !empty($totalSales->total_amount)) ? handlePrice($totalSales->total_amount) : 0 }}
@can('admin_webinars_export_excel') @endcan
@foreach($bundles as $bundle) @endforeach
{{trans('admin/main.id')}} {{trans('admin/main.title')}} {{trans('admin/main.instructor')}} {{trans('admin/main.price')}} {{trans('admin/main.sales')}} {{trans('admin/main.income')}} {{trans('admin/main.course_count')}} {{trans('admin/main.created_at')}} {{trans('admin/main.updated_at')}} {{trans('admin/main.status')}} {{trans('admin/main.actions')}}
{{ $bundle->id }} {{ $bundle->title }} @if(!empty($bundle->category->title))
{{ $bundle->category->title }}
@else
{{trans('admin/main.no_category')}}
@endif
{{ $bundle->teacher->full_name }} @if(!empty($bundle->price) and $bundle->price > 0) {{ handlePrice($bundle->price, true, true) }} @if($bundle->getDiscountPercent() > 0)
{{ $bundle->getDiscountPercent() }}% {{trans('admin/main.off')}}
@endif @else {{ trans('public.free') }} @endif
{{ $bundle->sales->count() }} {{ handlePrice($bundle->sales->sum('total_amount')) }} {{ $bundle->bundle_webinars_count }} {{ dateTimeFormat($bundle->created_at, 'Y M j | H:i') }} {{ dateTimeFormat($bundle->updated_at, 'Y M j | H:i') }} @switch($bundle->status) @case(\App\Models\Webinar::$active)
{{ trans('admin/main.published') }}
@break @case(\App\Models\Bundle::$isDraft) {{ trans('admin/main.is_draft') }} @break @case(\App\Models\Bundle::$pending) {{ trans('admin/main.waiting') }} @break @case(\App\Models\Bundle::$inactive) {{ trans('public.rejected') }} @break @endswitch
@endsection @push('scripts_bottom') @endpush