@extends('admin/layouts/app') @section('page-title') Update Student | Simple Admission @endsection @section('page-breadcrumb')

Student

@endsection @section('main-content')

Update Student

Basic Information
@method('PUT') @csrf
@if($errors->has('name')) {{ $errors->first('name') }} @endif
@if($errors->has('email')) {{ $errors->first('email') }} @endif
@if($errors->has('consultant_name')) {{ $errors->first('consultant_name') }} @endif
@if($errors->has('student_name')) {{ $errors->first('student_name') }} @endif
MIST Entry
@method('PUT') @csrf
@if($errors->has('move_to')) {{ $errors->first('move_to') }} @endif
@if($errors->has('no_contact')) {{ $errors->first('no_contact') }} @endif
@if($errors->has('contact_later')) {{ $errors->first('contact_later') }} @endif
@if($errors->has('not_interested')) {{ $errors->first('not_interested') }} @endif
@if($errors->has('not_support')) {{ $errors->first('not_support') }} @endif
@if($errors->has('admission_process')) {{ $errors->first('admission_process') }} @endif
@if($errors->has('class_schedule')) {{ $errors->first('class_schedule') }} @endif
@if($errors->has('location_choice')) {{ $errors->first('location_choice') }} @endif
@if($errors->has('interested_partner')) {{ $errors->first('interested_partner') }} @endif
@if($errors->has('interested_without_partner')) {{ $errors->first('interested_without_partner') }} @endif
@if($errors->has('office_visit')) {{ $errors->first('office_visit') }} @endif
@if($errors->has('what_need')) {{ $errors->first('what_need') }} @endif
@if($errors->has('eligibility_problem')) {{ $errors->first('eligibility_problem') }} @endif
@if($errors->has('other_education_level')) {{ $errors->first('other_education_level') }} @endif
@if($errors->has('admitted_by_own')) {{ $errors->first('admitted_by_own') }} @endif
@if($errors->has('credit_transfer')) {{ $errors->first('credit_transfer') }} @endif
@if($errors->has('ieb_membership')) {{ $errors->first('ieb_membership') }} @endif
@if($errors->has('admission_test')) {{ $errors->first('admission_test') }} @endif
@if($errors->has('diploma_holder')) {{ $errors->first('diploma_holder') }} @endif
@if($errors->has('informed_by')) {{ $errors->first('informed_by') }} @endif

Education Details

@method('PUT') @csrf
@if(!empty($counseling->student_education)) @foreach($counseling->student_education as $index => $education)

@if($education->type == '0') Other @else {{strtoupper(@$education->degree->name)}} @endif

@if($errors->has('passing_year')) {{ $errors->first('passing_year') }} @endif
@if($errors->has('result')) {{ $errors->first('result') }} @endif
@php $get_education_groups_by_type = \App\Models\System\EducationCourseGroup::where('type_id', $education->type)->get(); @endphp @if($errors->has('group')) {{ $errors->first('group') }} @endif
@if($errors->has('ssc_board')) {{ $errors->first('ssc_board') }} @endif
@if($errors->has('other_education_level')) {{ $errors->first('other_education_level') }} @endif
@if($errors->has('ssc_institute')) {{ $errors->first('ssc_institute') }} @endif

@endforeach @endif

Student’s Interests

@method('PUT') @csrf
@if($errors->has('affiliate_institute')) {{ $errors->first('affiliate_institute') }} @endif
@if($errors->has('wants_to_admit')) {{ $errors->first('wants_to_admit') }} @endif
@if($errors->has('budget')) {{ $errors->first('budget') }} @endif
@if(Auth::user()->id == 1)
Counselling
@csrf
Agent
@csrf
@endif
Application Information
@method('PUT') @csrf
@if($errors->has('source_of_lead')) {{ $errors->first('source_of_lead') }} @endif
@if($errors->has('call_time')) {{ $errors->first('call_time') }} @endif
@if($errors->has('consultant_name')) {{ $errors->first('consultant_name') }} @endif
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @if($errors->has('student_name'))--}} {{-- {{ $errors->first('student_name') }}--}} {{-- @endif--}} {{-- --}} {{--
--}} {{--
--}}
@if($errors->has('division_id')) {{ $errors->first('division_id') }} @endif
@if($errors->has('area')) {{ $errors->first('area') }} @endif
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @if($errors->has('mobile'))--}} {{-- {{ $errors->first('mobile') }}--}} {{-- @endif--}} {{-- --}} {{--
--}} {{--
--}}
@if($errors->has('mobile_two')) {{ $errors->first('mobile_two') }} @endif
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @if($errors->has('email'))--}} {{-- {{ $errors->first('email') }}--}} {{-- @endif--}} {{-- --}} {{--
--}} {{--
--}}
@if($errors->has('location')) {{ $errors->first('location') }} @endif
@if($errors->has('gd_mobile')) {{ $errors->first('gd_mobile') }} @endif
@if($errors->has('gd_mobile_two')) {{ $errors->first('gd_mobile_two') }} @endif
@if($errors->has('education_level')) {{ $errors->first('education_level') }} @endif
@if($errors->has('study_gap')) {{ $errors->first('study_gap') }} @endif
@if($errors->has('other_education_level')) {{ $errors->first('other_education_level') }} @endif
@if($errors->has('category')) {{ $errors->first('category') }} @endif

Call Information

@method('PUT') @csrf
@if(!empty($counseling->mistCall)) @foreach ($counseling->mistCall as $key => $call) @endforeach @endif
SL Call By Remarks
{{$key + 1}} {{$call->callByUser->name ?? ""}} - {{date('Y-m-d h:i a',strtotime($call->created_at))}} {{$call->remarks ?? ""}}
{{--

Call Feedback Information

@method('PUT') @csrf
@if(!empty($counseling->mistCallFeadback)) @foreach ($counseling->mistCallFeadback as $key => $fdback) --}}{{-- --}}{{-- @endforeach @endif
SL Feedback By Remarks
{{$key + 1}} {{$fdback->feadbackUser->name ?? ""}} - {{date('Y-m-d h:i a',strtotime($fdback->created_at))}} {{$fdback->remarks ?? ""}}
--}}

Sessions

@if(!empty($counseling->counselingSession)) @foreach ($counseling->counselingSession as $key => $session) @endforeach @endif
SL Counselor Status Meeting Time Action
{{$key + 1}} {{$session->counselor->name ?? ""}} @if($session->status == '-1') Pending @elseif($session->status == '0') Cancelled @elseif($session->status == '1') Approved @endif {{date('Y-m-d h:i a',strtotime($session->time))}}

Notes

@if(!empty($notes)) @foreach ($notes as $key => $note) @endforeach @endif
SL Note Updated By Action
{{$key + 1}} {{ Str::limit($note->note ?? '', 40) }} {{$note->updatedBy->name ?? ""}}
{{date('d-M-Y H:i:s', strtotime($note->updated_at))}}
@can('view applied student')

Applied On

@can('create applied student') @endcan @if(!empty($students)) @foreach ($students as $key => $student) @foreach($student->myCourse as $ownCourse) @endforeach @endforeach @endif
Course Name Institute Applied at Status Action
{{$ownCourse->course->courseName->name ?? ""}}
{{$ownCourse->course->institute->name ?? ""}}
{{$ownCourse->applied_at ?? ""}}
@php $statusLabel = isset($applied_status_labels[$ownCourse->status]) ? $applied_status_labels[$ownCourse->status] : 'Unknown'; $btnClass = 'btn btn-light btn-sm me-1'; if (($ownCourse->status == 2) || ($ownCourse->status == 3)) { $btnClass = 'btn btn-light-danger btn-sm me-1'; } elseif (($ownCourse->status == 1) || ($ownCourse->status == 4)) { $btnClass = 'btn btn-light-success btn-sm me-1'; } @endphp {{-- --}} @can('create applied student') @endcan
@endcan @can('view task')

Tasks

@can('create task') @endcan @if(!empty($tasks)) @foreach ($tasks as $key => $item) @endforeach @endif
Title Type Start Date Due Date Responsible Person Status Action
{{$item->title ?? ""}} {{$item->task_type->name ?? ""}} {{$item->start_time ?? ""}} {{$item->due_time ?? ""}} {{$item->counselor->name ?? ""}} @if($item->status == 0) Cancel @elseif($item->status == 1) Complete @elseif($item->status == '-1') Pending @elseif($item->status == 2) On Going @endif @can('update task') @endcan @can('delete task') @endcan
@endcan @can('view student payment')

Payment

@can('create student payment') @endcan @if(!empty($student_payments)) @foreach ($student_payments as $key => $student_payment) @endforeach @endif
Course Name Payment Method Amount Transaction ID Status Details Action
{{$student_payment->appliedCourse->course->courseName->name ?? ""}}
{{$student_payment->paymentMethod->name ?? ""}} {{$student_payment->amount ?? ""}} {{$student_payment->transaction_id ?? ""}} @php $statusLabels = [ 0 => 'Pending', 1 => 'Success', 2 => 'Not Approved', 3 => 'Reject', 4 => 'Paid', 5 => 'Review' ]; $statusLabel = isset($statusLabels[$student_payment->status]) ? $statusLabels[$student_payment->status] : 'Unknown'; $btnClass = 'btn btn-light btn-sm me-1'; if (($student_payment->status == 2) || ($student_payment->status == 3)) { $btnClass = 'btn btn-light-danger btn-sm me-1'; } elseif (($student_payment->status == 1) || ($student_payment->status == 4)) { $btnClass = 'btn btn-light-success btn-sm me-1'; } @endphp {{-- --}} {{$student_payment->details ?? ""}} @can('update student payment') @endcan @can('delete student payment') @endcan
@endcan @can('view student document')

Documents

@can('create student document') @endcan @if(!empty($documents)) @foreach ($documents as $key => $item) @endforeach @endif
Type File Status Action
{{$item->document_type->name ?? 'Other'}} @php $file_path = $item->file_path; $file_url = url($file_path); $file_extension = pathinfo($file_path, PATHINFO_EXTENSION); $image_extensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp']; @endphp @if(in_array(strtolower($file_extension), $image_extensions)) @elseif(isset($file_path) && $file_extension === 'pdf') Download PDF @elseif(isset($file_path) && $file_extension != 'pdf') Download File @else No File Added! @endif @php $statusLabels = [ 0 => 'Pending', 1 => 'Success', 2 => 'Not Approved', 3 => 'Reject', 4 => 'Paid', 5 => 'Review' ]; $statusLabel = isset($statusLabels[$item->status]) ? $statusLabels[$item->status] : 'Unknown'; $btnClass = 'btn btn-light btn-sm me-1'; if (($item->status == 2) || ($item->status == 3)) { $btnClass = 'btn btn-light-danger btn-sm me-1'; } elseif (($item->status == 1) || ($item->status == 4)) { $btnClass = 'btn btn-light-success btn-sm me-1'; } @endphp @can('update student document') @endcan @can('delete student document') @endcan
@endcan

Timeline

SL. Message remarks Created By