Your IP : 216.73.216.79


Current Path : /var/www/html/mysis/resources/views/state/
Upload File :
Current File : /var/www/html/mysis/resources/views/state/create.blade.php

<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">Add State</h2>
    </x-slot>
    <div class="py-6">
        <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
            <div class="px-4 sm:px-6 lg:px-8 p-6">
                <h4 class="text-lg font-semibold text-gray-900 mb-4">State Details</h4>
                <form action="{{ route('state.store') }}" method="post" enctype="multipart/form-data">
                    @csrf
                    <input type="hidden" id="state_id" name="state_id" value="{{ $state->id ?? '' }}">
                    <div class="mb-4">
                        <label for="state_name" class="block text-sm font-medium text-gray-700">State Name</label>
                        <input type="text" id="state_name" name="state_name" value="{{ $state->state_name ?? '' }}"
                               class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"
                               placeholder="State Name...." required>
                    </div>
                    <div class="flex items-center space-x-4">
                        <button type="submit"
                                class="inline-flex items-center px-4 py-2 bg-indigo-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-indigo-700">
                            Submit
                        </button>
                        <a href="{{ route('state.index') }}"
                           class="inline-flex items-center px-4 py-2 bg-gray-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700">
                            Back
                        </a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</x-app-layout>