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

All State Lists

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

Add State

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