@extends('admin.layouts.main') @section('content')

{{ @$data ? 'Edit' : 'Add' }} Course

@include('admin.includes.alert')
@csrf @if( @$data ) @method('PATCH') @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
image_url == null ? 'required' : '' }}> @if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
@if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif
@if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif
@if ($errors->has('lable_name')) {{ $errors->first('lable_name') }} @endif
@endsection @push('script') @endpush