@extends('layouts.admin') @section('styles') @endsection @section('content')

All City Lists

@if (session()->has('message'))
{{ session()->get('title')}}..!
{{ session()->get('message')}}
@endif @php $id=0;@endphp @foreach($cities as $city) @php $id++;@endphp @if($city->status == true) @else @endif @endforeach
No City State Country Total Posts Status Action
{{$id}} {{$city->name}} {{$city->state->name}} {{$city->state->country->name}} {{count($city->posts)}}PublishedNot Published @if($city->status == true) @else @endif
No State Country Total Posts Status Action

Add City

@csrf
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@endsection @section('scripts') @endsection