@extends('admin.layouts.app') @section('title', admin_trans('countries')) @section('page-title', admin_trans('countries')) @section('content')
{{ admin_trans('add_country') }}
@if($countries->isEmpty()) @if(request('search')) {{ admin_trans('clear') }} @else {{ admin_trans('add_country') }} @endif @else @foreach($countries as $country)
{{ $country->order ?? 0 }}
@if($country->flag_url) {{ $country->name }} Flag @else
{{ $country->flag_emoji ?? '🏳️' }}
@endif
{{ $country->name ?? $country->code }} @if($country->name && $country->name !== $country->code)
{{ $country->code }}
@endif
@if($country->iso_code) {{ $country->iso_code }} @endif @if($country->iso2 && $country->iso2 !== $country->code) {{ $country->iso2 }} @endif
@if($country->currency_code || $country->currency)
{{ $country->currency_code ?? $country->currency }}
@if($country->currency_symbol)
{{ $country->currency_symbol }}
@endif
@else - @endif
@if($country->dial_code) {{ $country->dial_code }} @else - @endif
@csrf @method('PATCH')
@if($country->is_default) {{ admin_trans('default') }} @else
@csrf @method('PATCH')
@endif
@if($country->iso_code)
@csrf @method('PATCH')
@endif @if(!$country->is_default) @endif
@endforeach
{{ admin_trans('drag_rows_to_reorder') }}
@if($countries->hasPages()) @endif
@endif

{{ admin_trans('add_country') }}

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

{{ admin_trans('edit_country') }}

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