@extends('layouts.master') @section('title') {{ __($page_title) }} @endsection @section('page-title') {{ __($page_title) }} @endsection @section('body') @endsection @section('content')

{{ __($page_title) }}

@can('admin.countries.create') {{ __('Add New Country') }} @endcan
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- @can('admin.countries.create')

{{ __($page_title) }}

{{ __('Add New Country') }}
@endcan --}} @can('admin.countries.index')
@can('admin.countries.update') @endcan @foreach ($countries as $key => $country) @can('admin.countries.update') @endcan @endforeach
# {{ __('Name') }} {{ __('Iso') }}{{ __('Status') }}{{ __('Actions') }}
{{ $country->id }} {{ $country->collectLocalization('name') }} {{ $country->iso }} {{ $country->status ? __('Active') : __('Not Active') }}
    @can('admin.countries.update')
  • @endcan @can('admin.countries.delete')
  • @csrf @method('DELETE')
  • @endcan
{{ $countries->links('pagination::bootstrap-4') }}
@endcan
@endsection @section('scripts') @include('layouts.scripts.alert-delete-scripts') @include('layouts.scripts.alert-status-scripts') @endsection