@extends('backend.layouts.master') @section('pageTitle') Class Profile @endsection @section('bodyCssClass') @endsection @section('pageContent') Class Profile Dashboard Class Profile @if($profile) Update @else Add @endif @if($profile) Update @else Add @endif Class Profile * Marks are required feild @csrf @if($profile) {{ method_field('PATCH') }} @endif Name* {{ $errors->first('name') }} Image Small[370 X 280 min size and max 2MB] @if(!$profile) * @endif {{ $errors->first('image_sm') }} Image Large[870 X 460 min size and max 2MB] @if(!$profile) * @endif {{ $errors->first('image_lg') }} Class Teacher* {{ $errors->first('teacher') }} Room No* {{ $errors->first('room_no') }} Capacity* {{ $errors->first('capacity') }} Shift* {{ $errors->first('shift') }} Short Description* {{ $errors->first('short_description') }} Description @if($profile){{ $profile->description }}@else{{ old('description') }} @endif {{ $errors->first('description') }} Outline/Syllabus/Structure @if($profile){{ $profile->outline }}@else{{ old('outline') }} @endif {{ $errors->first('outline') }} {{--@if (count($errors) > 0)--}} {{----}} {{----}} {{--@foreach ($errors->all() as $error)--}} {{--{{ $error }}--}} {{--@endforeach--}} {{----}} {{----}} {{--@endif--}} @endsection @section('extraScript') @endsection