@extends('layouts.app') @section('content') @php $translationLanguages = ($appLanguages ?? collect())->filter(fn ($language) => filled($language->code))->values(); @endphp

Add Required Document
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $oldDocuments = old('documents'); if (!is_array($oldDocuments)) { $oldDocuments = []; } $oldCountryId = old('country_id'); $isDefaultDocuments = old('is_default_documents', '0') === '1'; $numericKeys = array_map('intval', array_keys($oldDocuments ?: [0])); $nextIndex = empty($numericKeys) ? 1 : (max($numericKeys) + 1); @endphp
@csrf
Add New Document For This Country (Optional)
@foreach ($oldDocuments as $index => $document) @php $rowStatus = ($document['status'] ?? 'active') === 'deactivated' ? 'deactivated' : 'active'; $rowRequired = (string) ($document['is_required'] ?? '1'); @endphp @endforeach
Document Name Description Action
Global Translate Option

Automatically translate using Google Translate API if checked.

@include('includes.partial.auto_translate.create_toggle')
@endsection