@extends('layouts.admin') @section('title', __('admin.languages')) @section('breadcrumb', __('admin.group.settings')) @section('content') @include('admin.partials.grid-toolbar', [ 'action' => route('admin.languages.index'), 'search' => $search, 'placeholder' => __('admin.search_language'), 'count' => $languages->total(), 'addTarget' => 'create-language', 'addLabel' => __('admin.new_language'), 'filters' => [ [ 'name' => 'status', 'label' => __('admin.status'), 'value' => $status, 'options' => [ 'all' => __('admin.all'), 'active' => __('admin.active'), 'inactive' => __('admin.inactive'), 'default' => __('admin.default'), ], ], [ 'name' => 'dir', 'label' => __('admin.direction'), 'value' => $dir, 'options' => [ 'all' => __('admin.all_directions'), 'rtl' => 'RTL', 'ltr' => 'LTR', ], ], ], ])
@forelse ($languages as $language) @php($modalId = 'edit-language-'.$language->id)
{{ strtoupper($language->code) }}
{{ $language->name }} {{ $language->english_name }} · {{ $language->code }}
@if ($language->is_default) {{ __('admin.default') }} @endif {{ $language->is_active ? __('admin.active') : __('admin.inactive') }}
{{ __('admin.direction') }} {{ strtoupper($language->dir) }}
{{ __('admin.font') }} {{ $language->font?->name ?? __('admin.default_font') }}
{{ __('admin.sort_order') }} {{ $language->sort_order }}
@csrf
@unless ($language->is_default)
@csrf
@csrf @method('delete')
@endunless
@csrf @method('put')
{{ __('admin.language_edit_help') }}
@empty
{{ __('admin.no_results') }} {{ __('admin.no_results_help') }}
@endforelse
@csrf

{{ __('admin.new_language_content_help') }}

@include('admin.partials.pagination', ['paginator' => $languages])

{{ __('admin.fonts') }}

{{ __('admin.fonts_short_help') }}
{{ __('admin.manage_fonts') }}
@foreach ($fonts as $font) @endforeach
{{ __('admin.name') }}{{ __('admin.family') }}{{ __('admin.source') }}{{ __('admin.status') }}
{{ $font->name }} {{ $font->family }} {{ __('admin.font_sources.'.$font->source) }} {{ $font->is_active ? __('admin.active') : __('admin.inactive') }}
@endsection