@extends('layouts.app') @section('css') @endsection @section('content') @include('layouts.toolbar')

{{isset($studentSummerEnrollment->student) ? ucwords($studentSummerEnrollment->student->first_name) .' '. ucwords($studentSummerEnrollment->student->last_name) : ''}} - {{isset($studentSummerEnrollment->currentGrade) ? $studentSummerEnrollment->currentGrade->name : ''}}

{{--
--}} {{-- {{ csrf_field() }}--}} @php if ($studentSummerEnrollment){ $agreement = isset($studentSummerEnrollment->agreement) ? json_decode($studentSummerEnrollment->agreement) : []; } @endphp

Preview of Summer Camp Enrollment

ONSITE ENROLLMENT DETAILS
@if(isset($studentSummerEnrollment->enrollmentWeekSchedules) && $studentSummerEnrollment->enrollmentWeekSchedules->count()) @foreach($studentSummerEnrollment->enrollmentWeekSchedules->sortBy('week_no') as $scheduleWeek) @endforeach @else @endif
WEEK # SCHEDULE DAYS ATTENDING CLASSES/ACTIVITIES LUNCH CHARGES
WEEK #:
{{ ordinalSuffixFormat($scheduleWeek->week_no) . ' ('. date('d F, Y', strtotime($scheduleWeek->getWeek->start_date)) . ' to ' . date('d F, Y', strtotime($scheduleWeek->getWeek->end_date)) .')' }}
SCHEDULE:
{{isset($scheduleWeek->schedule) ? $scheduleWeek->schedule->schedule_name : '' }}
DAYS ATTENDING:
{{isset($scheduleWeek->days_attending) ? implode(', ', json_decode($scheduleWeek->days_attending)) : ''}}
CLASSES/ACTIVITIES:
@if(isset($scheduleWeek->summerEnrollmentClasses) && $scheduleWeek->summerEnrollmentClasses->count()) @foreach($scheduleWeek->summerEnrollmentClasses as $class) {{isset($class->enrollmentClass->class_title) ? $class->enrollmentClass->class_title : ''}}
@endforeach @endif
LUNCH CHARGES:
{{$scheduleWeek->is_lunch}} {{ ($scheduleWeek->is_lunch == 'YES') ? '('. int_to_money($scheduleWeek->lunch_amount,'$',true).')' : '' }}
No Week is added.

{{-- --}} {{-- --}} {{--
--}} {{--
--}}
{{ csrf_field() }}
Your card will not be charged until your invoice is due and payment has not been received through other methods after one or more requests for payment

Select One Card

{{ csrf_field() }}
@php $checkedSourceId = 0; if ($studentSummerEnrollment->paymentSources()->exists()){ $checkedSource = $studentSummerEnrollment->paymentSources()->first(); $checkedSourceId = $checkedSource->pivot->payment_source_id; } @endphp @foreach($paymentSources as $index => $source) @endforeach
Card Expire Month Expire Year Status Action
Select Option:
id || $source->is_primary == 1) {!! "checked" !!} @endif value="{{$source->id}}">
Card:
{!! getCardIcon($source->brand) !!} {{$source->last_four}}
Expiry Month:
{{$source->exp_month}}
Expiry Year:
{{$source->exp_year}}
Status:
{!! getStatusIcon($source->status) !!}
Action:

@php $backUrl = session('enrollment_year') > 2024 && user()->assignedRole->name != 'PARENT' ? url('summer-enrollment/'.encryptedId($studentId).'/1/weeks') : url('summer-enrollment/agreement-after-week/'.encryptedId($studentId)); @endphp Back Back to camp week
@if(session('role') != 'PARENT') @endif
@endsection @section('js') {{-- --}} @endsection