@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; $showFees = $tenant->hasModule('batch_fees'); $picked = array_map('intval', old('batch_ids', request('batch') ? [request('batch')] : ($lead?->demo_batch_id ? [$lead->demo_batch_id] : []))); [$leadFirst, $leadLast] = $lead ? array_pad(explode(' ', trim($lead->name), 2), 2, '') : ['', '']; $batchData = $batches->mapWithKeys(fn ($b) => [$b->id => [ 'fee' => $b->effectiveFeeCents() / 100, 'admission' => $b->course->admission_fee_cents / 100, 'billing' => $b->course->billing_type, 'installments' => $b->course->installment_count, ]]); @endphp @include('tenant.coaching._errors') @if($lead)
Admitting enquiry {{ $lead->name }} — it will be marked Admitted.
@endif @if(! $session)
No academic session exists yet. Create one before admitting students.
@endif
@csrf @if($lead)@endif

Student

@if($branches->count() > 1)
@elseif($branches->first()) @endif

Guardian

If a guardian with this mobile number already exists (e.g. a sibling is enrolled), the student is linked to them instead of creating a duplicate.

Batches

@forelse($batches as $batch) @php $full = $batch->capacity && $batch->active_enrollments_count >= $batch->capacity; @endphp
@if($showFees)

{{ Money::format($batch->effectiveFeeCents(), $currency) }}{{ $batch->course->billing_type === 'monthly' ? '/mo' : '' }}

{{ $batch->course->billing_type === 'installment' ? $batch->course->installment_count.' installments' : $batch->course->billingLabel() }}

@endif
@empty

No open batches. Create a batch first.

@endforelse

Summary

batch(es) selected

@if($showFees)

Payable at admission

Admission fees + first month / first installment / full course fee.

Recorded as a cash payment against the oldest invoices.

@endif