@extends('layouts.vertical') @section('css') @endsection @section('breadcrumb')

School profile

@endsection @php $is_update = false; if(isset($currentSchool) && !empty($currentSchool)){ $is_update = true; } @endphp @section('content')
General details
@csrf
Type of school
@if(isset($preSchool) && !empty($preSchool)) @foreach ($preSchool as $key => $pSchool)
category->reference) && $currentSchool->category->reference == $pSchool->_id) || old('category') == $pSchool->_id) ? 'checked' : '' }}>
@endforeach @endif
category->reference)) || old('category') == "0") ? 'checked' : '' }}>
Opening days and times
@foreach(config('constant.collection_days') as $key => $day) @php $currentDay = null; @endphp @if($is_update && isset($schoolTimings) && !empty($schoolTimings)) @php $currentDay = collect($schoolTimings)->where('day', $key)->first(); @endphp @endif
@endforeach
@endsection @section('script-bottom') @endsection