@extends('admin.layout.main') @section('content')

@if(isset($state)) Edit @else Add @endif State Management

@csrf @if(isset($state)) @method('PUT') @endif
@if ($errors->has('country_id'))
{{ $errors->first('country_id') }}
@endif
@if(is_object($states) && count($states) > 0) @foreach($states as $state) @endforeach @endif @if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
@endsection @section('js') @endsection