@extends('layouts.layout') @section('title', 'Customer Student') @section('content') @include('customers.customer_sidebar')
@include('customers.student_list')

About

@csrf
0 Year 0 Month 0 Day

Date First Added: @if (!empty($studentactive->created_at) && $studentactive->created_at != '0000-00-00 00:00:00') {{ date('d/m/y | H:m', strtotime($studentactive->created_at)) }} @endif

TERMS

Imported Terms:

Completed Terms (New System):

Manual Adjustment:

Total Terms With Jigsaw:

{{--

Current Term: {{ $currentterms }}

--}}

Medical Notes

@if (isset($studentactive->medicalNote) && count($studentactive->medicalNote) > 0) @foreach ($studentactive->medicalNote as $note)

Updated: {{ date_format($note->updated_at, 'd/m/y H:m') }} {{ $note->remark }}

{!! $note->notes !!}

@endforeach @endif

Current Bookings

@if (!empty($studentbooking) && count($studentbooking) > 0) @foreach ($studentbooking as $studentbookingval)
@if(controls_access($studentbookingval['franchise_id']) == "yes")

Controls

@if (!empty($studentbookingval) && !empty($studentbookingval->student)) @if ($studentbookingval->booking_status != 'move' && $studentbookingval->booking_status != 'cancel') @if ($studentbookingval->booking_type != 'trial' && $studentbookingval->is_class_end == 'running') @if(date('Y-m-d') < date('Y-m-d', strtotime($studentbookingval->classes->start_date))) @endif Cancel class @endif Change student @else @if ($studentbookingval->booking_status != 'move' && $studentbookingval->booking_status != 'cancel') @if ($studentbookingval->is_class_end == 'running') Cancel class @endif @if ($studentbookingval->booking_type == 'trial') @if ($studentbookingval->order->is_trial_to_full_term == 0) Change student @endif @else Change student @endif @endif @endif @endif @if ($studentbookingval->booking_type == 'trial' && $studentbookingval->booking_status != "move" && $studentbookingval->booking_status != "cancel" && $studentbookingval->booking_status != "move_to_full_term") @endif
@endif

Detail

@if ($studentbookingval['booking_status'] == 'move') @elseif ($studentbookingval['booking_status'] == 'cancel') @elseif ($studentbookingval['booking_status'] == 'renewal') @elseif ($studentbookingval['booking_status'] == 'renewal_cancel') @else @if ($studentbookingval->booking_type == 'trial')
@if ($studentbookingval['is_trial_cancel'] == '0' && $studentbookingval['booking_status'] == 'move_to_full_term') @elseif($studentbookingval['is_trial_cancel'] == '1') @endif
@endif @endif
{{ Str::ucfirst($studentbookingval['franchise']['name']) }}
{{ Str::ucfirst($studentbookingval['classes']['venue']['name']) }} VENUE: {{ $studentbookingval['classes']['classage']['class_age_from'] }} - {{ $studentbookingval['classes']['classage']['class_age_to'] }} Year Olds
Order ID: @if(controls_access($studentbookingval['franchise_id']) == "yes") {!! $studentbookingval->order->order_number !!} @else {!! $studentbookingval->order->order_number !!} @endif Date: {!! date('d/m/y H:i', strtotime($studentbookingval->created_at)) !!} TERM: {!! !empty($studentbookingval->classes->term) ? $studentbookingval->classes->term->term_name : '' !!}
TYPE: @if ($studentbookingval['booking_type'] == 'full_term') {{ 'Full Term' }} @elseif($studentbookingval['booking_type'] == 'term') {{ 'Term' }} @elseif($studentbookingval['booking_type'] == 'trial') {{ 'Trial' }} @endif TOTAL BOOKING VALUE: £{{ number_format($studentbookingval->amount, 2) }} @if (!empty($studentbookingval->order->booking_installment) && count($studentbookingval->order->booking_installment) > 0) Payments
(Instalments)
@foreach ($studentbookingval->order->booking_installment as $ordeinstallmentval) {!! date('jS M y', strtotime($ordeinstallmentval->installment_date)) !!}: £{!! number_format($ordeinstallmentval->installment_amount, 2) !!}
@endforeach @endif

Description

DAY {{ $studentbookingval['next_class_day'] }}

location {{ !empty($studentbookingval->classes->venue->address1) ? $studentbookingval->classes->venue->address1 : '' }} {{ !empty($studentbookingval->classes->venue->address2) ? $studentbookingval->classes->venue->address2 : '' }} {{ !empty($studentbookingval->classes->venue->address3) ? $studentbookingval->classes->venue->address3 : '' }} {{ !empty($studentbookingval->classes->venue->county) ? $studentbookingval->classes->venue->county . ', ' . $studentbookingval->classes->venue->country : '' }} {{ !empty($studentbookingval->classes->venue->postcode) ? $studentbookingval->classes->venue->postcode : '' }}

Time {{ $studentbookingval['next_class_start_time'] }} - {{ $studentbookingval['next_class_end_time'] }}

@if (!empty($studentbookingval->studentattendence) && count($studentbookingval->studentattendence) > 0)
Dates {{ $studentbookingval->booking_type == 'trial' ? '(Trial class)' : '' }}
    @foreach ($studentbookingval->studentattendence as $skey => $studentattendencedetail) @if ($skey >= 2 && $studentbookingval->booking_type == 'trial') @else
  • is_active == '1') class="text-danger text-custom-line-through" @elseif ($studentattendencedetail->is_student_present == '1') class="check-text" @elseif($studentattendencedetail->is_student_present == '2') class="uncheck-text" @elseif($studentattendencedetail->class_date < returnCurrentDate('Y-m-d')) class="check-text" @endif> {!! ucwords($studentattendencedetail->class_day) !!} {!! date('jS F Y', strtotime($studentattendencedetail->class_date)) !!}
  • @endif @endforeach
@endif
@endforeach @else

No current booking.

@endif

Previous Booking

@if (!empty($previousBookings) && count($previousBookings))
@foreach ($previousBookings as $previousBookingsItem) @endforeach
Order Id Transaction Date Term Price Booking Type Venue Age group
@if(controls_access($previousBookingsItem['franchise_id']) == "yes") {{ $previousBookingsItem['order']['order_number'] }} @else {{ $previousBookingsItem['order']['order_number'] }} @endif {{ date('d/m/y | H:i', strtotime($previousBookingsItem['created_at'])) }} {{ ((!empty($previousBookingsItem['classes']['term']['term_name'])) ? Str::ucfirst($previousBookingsItem['classes']['term']['term_name']) : '') }} £{{ number_format($previousBookingsItem['amount'], 2) }} @if ($previousBookingsItem['classes']['type'] == "holiday" || $previousBookingsItem['classes']['type'] == "other") {{ ucfirst($previousBookingsItem['classes']['type']) }} @else @if ($previousBookingsItem['booking_type'] == 'full_term') {{ 'Full Term' }} @elseif($previousBookingsItem['booking_type'] == 'term') {{ 'Term' }} @elseif($previousBookingsItem['booking_type'] == 'trial') {{ 'Trial' }} @endif @endif {{ $previousBookingsItem['classes']['venue']['name'] }} {{ $previousBookingsItem['classes']['classage']['class_age_from'] }}-{{ $previousBookingsItem['classes']['classage']['class_age_to'] }}
@else

No previous booking.

@endif
@if(!empty($studentReportData) && count($studentReportData) > 0)

Certificate History



@endif

Reports

Class Report Date Date Last Sent
@include('common.fullterm') @if (Auth::user()->role_id == 1) @else @endif {!! JsValidator::formRequest('App\Http\Requests\AddStudentRequest', '#newstudent') !!} {!! JsValidator::formRequest('App\Http\Requests\EditStudentRequest', '#updatestudent') !!} {!! JsValidator::formRequest('App\Http\Requests\AddNoteRequest', '#edit_note') !!} {!! JsValidator::formRequest('App\Http\Requests\AddNoteRequest', '#add_note') !!} @include('common.cancel_class') @endsection