@extends('layouts.app')

@section('title','Detail Kategori')

@section('content')

<div class="container" style="max-width:720px">
	<div class="card-modern p-4">
		<h3 class="mb-2">{{ $kategori->nama_kategori }}</h3>
		<p class="text-muted-sm">Detail kategori dan ringkasan event terkait.</p>

		<div class="mt-3">
			<a href="{{ route('kategori.edit',$kategori->id) }}" class="btn btn-warning">Edit</a>
			<form action="{{ route('kategori.destroy',$kategori->id) }}" method="POST" style="display:inline-block" onsubmit="return confirm('Hapus kategori?')">
				@csrf @method('DELETE')
				<button class="btn btn-danger">Hapus</button>
			</form>
			<a href="{{ route('kategori.index') }}" class="btn btn-outline-secondary">Kembali</a>
		</div>
	</div>
</div>

@endsection