@php $editRoute = 'bundle.edit'; $deleteRoute = 'bundle.destroy'; $restoreRoute = 'bundle.restore'; $translateRoute = 'bundle.translate'; if (isInstructor()) { $editRoute = 'instructor.bundle.edit'; $deleteRoute = 'instructor.bundle.destroy'; $restoreRoute = 'instructor.bundle.restore'; $translateRoute = 'instructor.bundle.translate'; } elseif (isOrganization()) { $editRoute = 'organization.bundle.edit'; $deleteRoute = 'organization.bundle.destroy'; $restoreRoute = 'organization.bundle.restore'; $translateRoute = 'organization.bundle.translate'; } $title = translate('Do you want to move to Trash'); $text = translate('If You trash,bundle and bundle related all data will be trashed.'); $isAdmin = isAdmin(); @endphp @foreach ($bundles as $bundle) @php if ($bundle->trashed()) { $title = translate('Are you sure you want to delete this permanently'); $text = translate( 'If You delete it, bundle and bundle related all data will be deleted permanently.', ); } $translations = parse_translation($bundle); $currency = $bundle->currency ?? 'USD-$'; $currencySymbol = get_currency_symbol($currency); @endphp @endforeach
{{ translate('Title') }} {{ translate('Price') }} {{ translate('Course') }} {{ translate('Date Created') }} {{ translate('Action') }}
@if ($bundle->thumbnail && fileExists('lms/courses/bundles', $bundle->thumbnail)) thumb @endif
{{ $currencySymbol }}{{ number_format($bundle->price, 2) }} {{ $bundle?->courses?->count() }} {{ customDateFormate($bundle->created_at) }}
@if ($bundle->trashed()) @if ($isAdmin) @endif @else @endif
{!! $bundles->links('portal::admin.pagination.paginate') !!}