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

{{ __($page_title) }}

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