@extends('layout')
@section('content')
<h1 class="title">Edit Section</h1>
<form action="/projects/{{ $project->id }}" method="POST" style="margin-bottom: 1rem">
@method('PATCH')
@csrf
<div class="field">
<label for="title" class="label">Title</label>
<div class="control">
<input type="text" class="input" id="title" name="title" placeholder="Title" value="{{ $project->title }}">
</div>
</div>
<div class="field">
<label for="description" class="label">Description</label>
<div class="control">
<textarea class="textarea" name="description" id="description">{{ $project->description }}</textarea>
</div>
</div>
<div class="field">
<div class="control">
<button type="submit" class="button is-link">Update Project</button>
</div>
</div>
</form>
<form action="/projects/{{ $project->id }}" method="POST">
@method('DELETE')
@csrf
<div class="field">
<div class="control">
<button type="submit" class="button">Delete Project</button>
</div>
</div>
</form>
@endsection