{{ translate('State Manage') }}
@if ($states->count() > 0) @foreach ($states as $state) @php $translations = parse_translation($state); $countryTranslations = []; if (method_exists($state, 'country')) { $countryTranslations = parse_translation($state->country); } @endphp @endforeach
{{ translate('Name') }} {{ translate('Country') }} {{ translate('Action') }}
{{ $translations['name'] ?? $state->name ?? '' }} {{ $countryTranslations['name'] ?? $state?->country?->name ?? '' }} @php $title = translate('Do you want to move to Trash'); $text = translate('If You trash,city data will be trashed.'); if ($state->trashed()) { $title = translate('Are you sure you want to delete this permanently'); $text = translate( 'If You delete it,city data will be deleted permanently.', ); } @endphp
@if ($state->trashed()) @else @endif
{{ $states->links('portal::admin.pagination.paginate') }} @else @endif