{{ translate('Manage City') }}
@if ($cities->count() > 0) @foreach ($cities as $city) @php $translations = parse_translation($city); $countryTranslations = []; $stateTranslations = []; if (method_exists($city, 'country')) { $countryTranslations = parse_translation($city->country); } if (method_exists($city, 'state')) { $stateTranslations = parse_translation($city->state); } @endphp @endforeach
{{ translate('City Name') }} {{ translate('State Name') }} {{ translate('Country Name') }} {{ translate('Status') }} {{ translate('Action') }}
{{ $translations['name'] ?? $city->name ?? '' }} {{ $stateTranslations['name'] ?? $city->state?->name ?? '' }} {{ $countryTranslations['name'] ?? $city->country?->name ?? '' }}
@php $title = translate('Do you want to move to Trash'); $text = translate('If You trash,city data will be trashed.'); if ($city->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 ($city->trashed()) @else @endif
{{ $cities->links('portal::admin.pagination.paginate') }} @else @endif