@extends('admin.layouts.app') @section('title', admin_trans('languages')) @section('page-title', admin_trans('languages')) @section('content')
{{ admin_trans('add_language') }}
@if($languages->isEmpty()) @if(request('search')) {{ admin_trans('clear') }} @else {{ admin_trans('add_language') }} @endif @else @foreach($languages as $language)
{{ $language->order }}
{{ strtoupper($language->code) }} {{ $language->name }} {{ $language->native_name }}
@csrf @method('PATCH')
@if($language->is_default) {{ admin_trans('default') }} @else
@csrf @method('PATCH')
@endif
@if(!$language->is_default) @endif
@endforeach
{{ admin_trans('drag_rows_to_reorder') }}
@if($languages->hasPages()) @endif
@endif

{{ admin_trans('add_language') }}

@csrf
{{ admin_trans('cancel') }} {{ admin_trans('create') }}

{{ admin_trans('edit_language') }}

@csrf @method('PUT')
{{ admin_trans('cancel') }} {{ admin_trans('update') }}
@csrf @method('DELETE')
@endsection @push('scripts') @endpush