@extends('layouts.admin.app') @section('content') {{-- --}}
Course Add add
@csrf @method('PATCH')

Add Course

@if(Session::has('success'))
{{ Session::get('success') }}
@endif @if(Session::has('error'))
{{ Session::get('error') }}
@endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('slug')) {{ $errors->first('slug') }} @endif
@if ($errors->has('classes_heading')) {{ $errors->first('classes_heading') }} @endif
@if ($errors->has('category')) {{ $errors->first('category') }} @endif
@php $skill_level = skill_level(); @endphp
@if ($errors->has('deadline')) {{ $errors->first('deadline') }} @endif


@if ($errors->has('certificate')) {{ $errors->first('certificate') }} @endif


@if ($errors->has('bestseller')) {{ $errors->first('bestseller') }} @endif

@if ($errors->has('short_description')) {{ $errors->first('short_description') }} @endif
@if ($errors->has('long_description')) {{ $errors->first('long_description') }} @endif
@php $learning_point = $data->learning_points; $lp_arr = json_decode($learning_point); @endphp @foreach ($lp_arr as $key => $lp) @if($key==0)
@else @endif @endforeach @if ($errors->has('learning_point')) {{ $errors->first('learning_point') }} @endif
@php $required_point = $data->required_points; $rp_arr = json_decode($required_point); @endphp @foreach ($rp_arr as $key => $rp) @if($key==0)
@else @endif @endforeach @if ($errors->has('required_point')) {{ $errors->first('required_point') }} @endif
@php $required_point = $data->description; $rp_arr = json_decode($required_point);@endphp @if($rp_arr!=null) @foreach($rp_arr as $key => $rp) @if($key==0)

@else

@endif

@endforeach @else

@endif
@if ($errors->has('description_details')) {{ $errors->first('description_details') }} @endif
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
cost}} required> @if ($errors->has('cost')) {{ $errors->first('cost') }} @endif
price}} required> @if ($errors->has('price')) {{ $errors->first('price') }} @endif
@if ($errors->has('pricediff')) {{ $errors->first('pricediff') }} @endif
@if ($errors->has('price_deadline')) {{ $errors->first('price_deadline') }} @endif
@if ($errors->has('training_feature')) {{ $errors->first('training_feature') }} @endif
@if ($errors->has('fnq')) {{ $errors->first('fnq') }} @endif
@if ($errors->has('fnq')) {{ $errors->first('fnq') }} @endif
@if ($errors->has('status')) {{ $errors->first('status') }} @endif
@include('layouts.admin.footer')
@endsection