@extends('admin.layout') @section('content')
{{ __('Cities') }}
@includeIf('admin.partials.languages')
{{ __('Add') }}
@if (count($cities) == 0)

{{ __('NO CITY FOUND') . '!' }}

@else
@foreach ($cities as $city) @endforeach
{{ __('Name') }} {{ __('State') }} {{ __('Country') }} {{ __('Actions') }}
{{ strlen($city->name) > 20 ? mb_substr($city->name, 0, 20, 'UTF-8') . '...' : $city->name }} @if ($city->state_id) {{ $city->state->name }} @else -- @endif @if ($city->country_id) {{ $city->country->name }} @else -- @endif @php $x = App\Models\Location\State::Where([ ['language_id', $city->language_id], ['country_id', $city->country_id], ])->count(); $okValue = $x != 0 ? 'OK' : null; @endphp
@csrf
@endif
{{-- create modal --}} @include('admin.listing.location.city.create') {{-- edit modal --}} @include('admin.listing.location.city.edit') @endsection @section('script') @endsection