65 lines
3.6 KiB
PHP
65 lines
3.6 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Edit Kecamatan')
|
|
|
|
@section('content')
|
|
|
|
<div class="bg-white p-2 mb-4 border-2 border-white rounded-lg">
|
|
<div class="flex justify-center items-center rounded-lg border-gray-300 h-4">
|
|
<h2 class="flex items-center justify-center text-sm text-center lg:text-lg font-bold uppercase text-red-600">
|
|
Edit Kecamatan
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
<section class="bg-white py-4 rounded-lg mb-4 antialiased md:py-8">
|
|
<div class="mx-auto max-w-screen-xl px-4 2xl:px-0">
|
|
<div class="mx-auto max-w-5xl">
|
|
<form action="{{ route('kecamatan.update', $kecamatan->id_kecamatan) }}" method="POST">
|
|
@csrf
|
|
@method('PUT')
|
|
<div class="mb-4">
|
|
<label for="nama_kecamatan" class="block text-sm font-medium text-gray-700">Nama Kecamatan</label>
|
|
<input type="text" id="nama_kecamatan" name="nama_kecamatan"
|
|
value="{{ old('nama_kecamatan', $kecamatan->nama_kecamatan) }}"
|
|
class="block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-red-500 focus:border-red-500">
|
|
@error('nama_kecamatan')
|
|
<p class="text-red-600 text-sm mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
<div class="mb-4">
|
|
<label for="latitude" class="block text-sm font-medium text-gray-700">Latitude</label>
|
|
<input type="text" id="latitude" name="latitude"
|
|
value="{{ old('latitude', $kecamatan->latitude) }}"
|
|
class="block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-red-500 focus:border-red-500">
|
|
@error('latitude')
|
|
<p class="text-red-600 text-sm mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
<div class="mb-4">
|
|
<label for="longitude" class="block text-sm font-medium text-gray-700">Longitude</label>
|
|
<input type="text" id="longitude" name="longitude"
|
|
value="{{ old('longitude', $kecamatan->longitude) }}"
|
|
class="block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-red-500 focus:border-red-500">
|
|
@error('longitude')
|
|
<p class="text-red-600 text-sm mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<!-- Tombol Aksi -->
|
|
<div class="flex justify-between items-center">
|
|
<a href="{{ route('kecamatan.index') }}"
|
|
class="inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500">
|
|
Kembali
|
|
</a>
|
|
<button type="submit"
|
|
class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-lg text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500">
|
|
Simpan
|
|
</button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endsection
|