@extends('admin.master') @section('title',@trans('Cities')) @section('content')

@trans('Cities')

@include('admin.pages.city._model_search')
@csrf
@forelse ($cities as $item) @empty @endforelse
# @trans('Title') @trans('Country') @trans('Currency') @trans('Sort') @trans('Created By') @trans('Status') @trans('Settings')
{{ $loop->index + 1}} {{ @$item->trans->where('locale', $current_lang)->first()->title }} {{ @$item->country->trans->where('locale', $current_lang)->first()->title }} @if ($item->currency) {{ optional(optional($item->currency)->trans->where('locale', $current_lang)->first())->title }} @endif @livewire('update-sort', [ 'sort' => $item->sort, 'modelName' => get_class($item), 'recordId' => $item->id ], key($item->id)) {{ @$item->create_by->name }} @if ($item->status == 1) @trans('Active') @else @trans('Unactive') @endif @include('admin.pages.city._model_delete', ['id' => $item->id])
@trans('No cities found')
@endsection