@extends('layouts.backend.master') @section('title', trans('backend.titles.faqs')) @section('content')
@include('backend.includes.form.header', ['page' => 'faqs'])
@csrf @if($edit) @method('PUT') @endif
@foreach ($langs as $lang)
code")) is-invalid @endif" name="question:{{ $lang->code }}" value="{{ isset($faq) ? $faq->translate($lang->code)->question : old('question:'.$lang->code) }}" placeholder="@lang('backend.placeholders.enter.question')"> @if ($errors->has("question:$lang->code"))
{{ $errors->first("question:$lang->code") }}
@endif
` @if ($errors->has("answer:$lang->code"))
{{ $errors->first("answer:$lang->code") }}
@endif
@endforeach
@include('backend.includes.form.footer')
@endsection @section('scripts') @endsection