@extends('layouts.admin')

@section('main-content')
<h1 class="h3 mb-4 text-gray-800">Ubah Sholat Jumat</h1>
<div class="card shadow mb-4">
	<div class="card-body">
		<form action="{{ route('sholat_jumat.update', $sholat_jumat) }}" method="POST">
			@csrf
			@method('PUT')
			<div class="form-group">
				<label>Tanggal</label>
				<input type="date" name="tanggal" class="form-control" value="{{ $sholat_jumat->tanggal }}" required>
			</div>
			<div class="form-group">
				<label>Imam</label>
				<input type="text" name="imam" class="form-control" value="{{ $sholat_jumat->imam }}">
			</div>
			<div class="form-group">
				<label>Khatib</label>
				<input type="text" name="khatib" class="form-control" value="{{ $sholat_jumat->khatib }}">
			</div>
			<div class="form-group">
				<label>Muadzin</label>
				<input type="text" name="muadzin" class="form-control" value="{{ $sholat_jumat->muadzin }}">
			</div>
			<button type="submit" class="btn btn-primary">Simpan</button>
			<a href="{{ route('sholat_jumat.index') }}" class="btn btn-secondary">Batal</a>
		</form>
	</div>
</div>
@endsection
