@extends('super_admins.layouts.master') @section('title') Edit FAQ @endsection @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif FAQ Home FAQs Edit FAQ @csrf @method('PUT') Multi Language @foreach ($active_languages as $key => $language) {{ $language->name }} @endforeach @foreach ($active_languages as $key => $language) Question ({{$language->code}}) @if ($errors->has('name.'.$language->code)) {{ $errors->first('name.'.$language->code) }} @endif Answer ({{$language->code}}) {{ $faq->getTranslation('description', $language->code); }} @if ($errors->has('description.'.$language->code)) {{ $errors->first('description.'.$language->code) }} @endif @endforeach @if (isset($faq_categories)) Select FAQ Category : @if (count($faq_categories) > 0) Select FAQ Category @foreach ($faq_categories as $faq_category) faq_category_id == $faq_category->id ? 'selected' : '' }}> {{ $faq_category->name }} @endforeach @else No FAQ Category Exists @endif @if ($errors->has('faq_category_id')) {{ $errors->first('faq_category_id') }} @endif @endif Choose Pciture @if ($errors->has('image')) {{ $errors->first('image') }} @endif @if ($faq->image) @else -- No Image Selected @endif Status is_active) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true"> Select Category 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