@extends('super_admins.layouts.master') @section('title') Edit Course @endsection @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif Course Home Courses Edit Course @csrf @method('PUT') Multi Language @foreach ($active_languages as $key => $language) {{ $language->name }} @endforeach @foreach ($active_languages as $key => $language) Name ({{$language->code}}) @if ($errors->has('name.'.$language->code)) {{ $errors->first('name.'.$language->code) }} @endif Description ({{$language->code}}) {{ $archive->getTranslation('description', $language->code); }} @if ($errors->has('description.'.$language->code)) {{ $errors->first('description.'.$language->code) }} @endif @endforeach @if (isset($archive_categories)) Select Course Category : @if (count($archive_categories) > 0) Select Course Category @foreach ($archive_categories as $archive_category) archive_category_id == $archive_category->id ? 'selected' : '' }}> {{ $archive_category->name }} @endforeach @else No Course Category Exists @endif @if ($errors->has('archive_category_id')) {{ $errors->first('archive_category_id') }} @endif @endif @if (isset($tags)) Select Course Tags : @if (count($tags) > 0) Select Course Tag @foreach ($tags as $tag) {{ $tag->name }} @endforeach @else No Course Tag Exists @endif @if ($errors->has('tags')) {{ $errors->first('tags') }} @endif @endif Choose Pciture @if ($errors->has('image')) {{ $errors->first('image') }} @endif @if ($archive->image) @else -- No Image Selected @endif Status is_active) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true"> Select Archive To Be Active Or Not {{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}} Update @include('super_admins.includes.image_cropper_modal') @endsection @section('scripts') @include('super_admins.includes.image_cropper_scripts') @endsection