@section('site_title', formatTitle([__('New'), __('Document'), config('settings.title')])) @include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => route('dashboard'), 'title' => __('Home')], ['url' => route('documents'), 'title' => __('Documents')], ['title' => __('New')], ]])

{{ __('New') }}

{{ __('Document') }}
@include('shared.message')
@csrf
@if ($errors->has('name')) {{ $errors->first('name') }} @endif {{ __('The name of the document.') }}
@if ($errors->has('prompt')) {{ $errors->first('prompt') }} @endif {{ __('The only limit is your imagination.') }}
@include('templates.partials.common-inputs')
{{ __('Reset') }}
@if(isset($documents)) {{ __('Show form') }} @endif
@if(isset($documents))
@foreach($documents as $document)
@include('templates.partials.document-result', ['document' => $document])
@endforeach
@endif
{{ __('Start by filling the form.') }}
{{ __('Generating the content, please wait.') }}