@extends('layouts.employee')

@section('content')

<h2 style="margin-bottom:20px;">Edit Laporan</h2>

<div class="card">

<form method="POST" action="/employee/reports/update/{{ $report->id }}">
@csrf
@method('PUT')

<label>Keterangan</label>
<textarea name="description" rows="5" required>{{ $report->description }}</textarea>

<br><br>

<label>Kerusakan</label>
<select name="severity">
<option value="minor" {{ $report->severity=='minor'?'selected':'' }}>Ringan</option>
<option value="medium" {{ $report->severity=='medium'?'selected':'' }}>Sedang</option>
<option value="critical" {{ $report->severity=='critical'?'selected':'' }}>Berat</option>
</select>

<br><br>

<button class="btn">Update Laporan</button>

</form>

</div>

@endsection