@extends('admin.layout')

@section('title', 'Modifier le bien')

@section('content')
    <h1 class="text-2xl font-semibold text-slate-900">Modifier le bien</h1>

    <form action="{{ route('admin.biens.update', $bien) }}" method="post" enctype="multipart/form-data" class="mt-8 max-w-xl space-y-6">
        @csrf
        @method('PUT')
        @include('admin.biens._form', ['bien' => $bien])
        <div class="flex gap-3">
            <button type="submit" class="rounded-lg bg-sky-600 px-4 py-2 text-sm font-semibold text-white hover:bg-sky-700">Mettre à jour</button>
            <a href="{{ route('admin.biens.index') }}" class="rounded-lg border border-slate-300 bg-white px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Annuler</a>
        </div>
    </form>
@endsection
