@extends('admin.layouts.app') @section('title', admin_trans('locales')) @section('page-title', admin_trans('locales')) @section('content')
{{ admin_trans('auto_create') }} {{ admin_trans('add_locale') }}

{{ admin_trans('locales_management') }}

{{ admin_trans('combine_languages_with_countries') }}

{{ $locales->total() }}

{{ admin_trans('total_locales') }}

{{ $locales->where('status', 'active')->count() }}

{{ admin_trans('active') }}

@if($locales->isEmpty()) @if(request('search')) {{ admin_trans('clear') }} @else {{ admin_trans('add_locale') }} @endif @else @foreach($locales as $locale)
{{ $locale->order ?? 0 }}
{{ $locale->code }} {{ $locale->name ?: $locale->code }}
{{ strtoupper(substr($locale->language->code, 0, 2)) }}
{{ $locale->language->name }}
{{ $locale->language->native_name }}
@if($locale->country->flag_url) {{ $locale->country->name }} Flag @else
{{ $locale->country->flag_emoji ?? '🏳️' }}
@endif
{{ $locale->country->name ?? $locale->country->code }}
{{ $locale->country->code }}
@csrf @method('PATCH')
@if($locale->is_default) {{ admin_trans('default') }} @else
@csrf @method('PATCH')
@endif
@if(!$locale->is_default) @endif
@endforeach
{{ admin_trans('drag_rows_to_reorder') }}
@if($locales->hasPages()) @endif
@endif

{{ admin_trans('add_locale') }}

@csrf
@foreach($languages as $language) @endforeach @foreach($countries as $country) @endforeach
{{ admin_trans('cancel') }} {{ admin_trans('create') }}

{{ admin_trans('edit_locale') }}

@csrf @method('PUT')
@foreach($languages as $language) @endforeach @foreach($countries as $country) @endforeach
{{ admin_trans('cancel') }} {{ admin_trans('update') }}
@csrf @method('DELETE')
@csrf
@endsection @push('scripts') @endpush