@php use App\Support\Money; $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $blank = ['id' => null, 'name' => '', 'code' => '', 'course_category_id' => '', 'description' => '', 'duration_weeks' => '', 'billing_type' => 'one_time', 'fee' => '', 'admission_fee' => '', 'installment_count' => 3, 'status' => 'active', 'is_public' => false, 'highlights' => '']; @endphp
@include('tenant.coaching._errors')
@forelse($courses as $course) @php $editData = $course->only('id', 'name', 'code', 'course_category_id', 'description', 'duration_weeks', 'billing_type', 'installment_count', 'status', 'is_public', 'highlights') + [ 'fee' => $course->fee_cents / 100, 'admission_fee' => $course->admission_fee_cents / 100, ]; @endphp @empty @endforelse
Code Course Category Fee Duration Open batches
{{ $course->code }}

{{ $course->name }}

@if($course->status === 'archived')Archived@endif @if($course->is_public && $tenant->hasModule('online_enrollment'))On website@endif
{{ $course->category?->name ?? '—' }}

{{ Money::format($course->fee_cents, $currency) }}@if($course->billing_type === 'monthly') / month@endif

{{ $course->billing_type === 'installment' ? $course->installment_count.' installments' : $course->billingLabel() }} @if($course->admission_fee_cents) · + {{ Money::format($course->admission_fee_cents, $currency) }} admission @endif

{{ $course->duration_weeks ? $course->duration_weeks.' weeks' : '—' }} {{ $course->open_batches_count }}
No courses yet.
@csrf
@foreach($billingTypes as $value => $label) @endforeach
@if($tenant->hasModule('online_enrollment'))
@endif