@extends('admin.layouts.app') @section('title') {{ isset($courses) ? 'Edit' : 'Create' }} @endsection @section('content')
@php $route = isset($courses) ? route('course.update', $courses->id) : route('course.store'); @endphp
@csrf @if (isset($courses)) @method('PUT') @endif

Course {!! isset($courses) ? "Edit " . $courses->id . '' : 'Create' !!}

Back
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Course Details
@php $requirements = [ 'name' => 'Course Name', 'url' => 'Course URL', 'meta_title' => 'Course Meta Title', 'meta_keywords' => 'Course Meta Keywords', 'Amount' => 'Course Amount', 'Currency' => 'Course Currency', 'InrAmount' => 'Course InrAmount', 'backlog' => 'Course Backlog', 'commissionAmount' => 'Commission Amount', 'CommissionCurrency' => 'Commission Currency', 'ApplicationFeeAmt' => 'Application Fee Amt', 'Concentration' => 'Concentration', 'minWorkEx' => 'Min Work Experience', 'maxWorkEx' => 'Max Work Experience', 'minAge' => 'Min Age', 'maxAge' => 'Max Age', 'kc_id' => 'Course KcId', 'sid' => 'Course sid', 'shiksha_url' => 'Course Shiksha Url', 'admission_website' => 'Course AdmissionWebsite', ]; @endphp @foreach ($requirements as $key => $label)
@if (in_array($key, ['Currency', 'CommissionCurrency'])) @else @endif
@endforeach
Exams
Requirements
@php $exams = [ 'Ielts' => [ 'Required' => 'IeltsRequired', 'Score' => 'IeltsOverall', 'LessThan' => 'IeltsNoBandLessThan', ], 'Toefl' => [ 'Required' => 'ToeflRequired', 'Score' => 'ToeflScore', 'LessThan' => 'TOEFLNoSectionLessThan', ], 'PTE' => [ 'Required' => 'PteRequired', 'Score' => 'PteScore', 'LessThan' => 'PTENoSectionLessThan', ], 'Sat' => [ 'Required' => 'SatRequired', 'Score' => 'SatScore', ], 'Gmat' => [ 'Required' => 'GmatRequired', 'Score' => 'GmatScore', ], 'Act' => [ 'Required' => 'ActRequired', 'Score' => 'ActScore', ], 'Gre' => [ 'Required' => 'GreRequired', 'Score' => 'GreScore', ], 'DET' => [ 'Required' => 'DETRequired', 'Score' => 'DETScore', ], 'Without Maths' => [ 'Required' => 'WithoutMaths', ], 'Without English Proficiency' => [ 'Required' => 'WithoutEnglishProficiency', ], ]; @endphp @foreach ($exams as $key => $value) @endforeach
Exam Type Required Score Less Than
{{ $key }}
{$value['Required']} == '1' || (isset($value['Score']) && $courses->{$value['Score']} > 0))) || old($value['Required']) ? 'checked' : '' }}>
@if (isset($value['Score'])) @endif @if (isset($value['LessThan'])) @endif
@php $requirements = [ 'EntryRequirementTwelfthOutOf4' => 'Twelth Out Of 4', 'EntryRequirementTwelfthOutOf5' => 'Twelth Out Of 5', 'EntryRequirementTwelfthOutOf7' => 'Twelth Out Of 7', 'EntryRequirementTwelfthOutOf10' => 'Twelth Out Of 10', 'EntryRequirementTwelfthOutOf45' => 'Twelth Out Of 45', 'EntryRequirementTwelfthOutOf100' => 'Twelth Out Of 100', 'EntryRequirementUgOutOf4' => 'UnderGraduation Out Of 4', 'EntryRequirementUgOutOf5' => 'UnderGraduation Out Of 5', 'EntryRequirementUgOutOf7' => 'UnderGraduation Out Of 7', 'EntryRequirementUgOutOf10' => 'UnderGraduation Out Of 10', 'EntryRequirementUgOutOf100' => 'UnderGraduation Out Of 100', ]; @endphp @foreach ($requirements as $key => $value) @endforeach
Required Score
{{ $value }}
Academic & Course Highlights
@php $desc = [ 'highlights' => 'Highlight Description', 'tenth_description' => 'Tenth Description', 'twelth_description' => 'Twelth Description', 'graduation_description' => 'Graduation Description', 'postGraduation_description' => 'Post Graduation Description', 'page_content' => 'Page Content', 'internationalDescription' => 'International Description', 'description' => 'Description', 'meta_description' => 'Meta Description', ]; @endphp @foreach ($desc as $key => $label)
@endforeach
{{ error('course_level_id') }}
Required Details
{{--
--}}
@php $exams = [ 'IsDeadlinePassed' => 'IsDeadlinePassed', 'AppFeeWaiverAvailable' => 'Application Fees Wavier', 'IsExtraChoicesOfPrograms' => 'Is Extra Choices Of Programs', 'IsOnlineCourse' => 'Online Course', 'ScholarshipAvailable' => 'Scholarship', 'FifteenYearsEducation' => 'Fifteen Years Education', 'status' => 'Status', ]; @endphp @foreach ($exams as $key => $value) @endforeach
Basic Required Status (Y/N)
{$key} == '1' ? 'checked' : '') : old($key)) ? 'checked' : '' }}>
@isset($courses->suggestion_data)
Suggestion
@php $json_data = $courses->suggestion_data; $suggestion_data = json_decode($json_data, true); @endphp @foreach ($suggestion_data as $value) @php $user = \App\Models\Admin::find($value['admin_id']); $user_name = $user ? $user->name : 'User not found'; @endphp @endforeach
Id User Name Date Message Action Button
{{ $value['id'] }} {{ $user_name }} {{ $value['timestamp'] }} {{ $value['suggestion_text'] }} Delete
@endisset
@endsection @section('style') @include('map::links') @endsection @section('script') @endsection