@extends('layouts.app')
@section('title','Edit Task')
@section('content')
<x-ui.page-toolbar title="Edit Task" description="Update assignment, priority or due date." :breadcrumbs="[['label'=>'Dashboard','url'=>route('dashboard')],['label'=>'Tasks','url'=>route('tasks.index')],['label'=>$task->title,'url'=>route('tasks.show',$task)],['label'=>'Edit']]" />
<div class="mf-card mf-card-body max-w-4xl">
    <form method="POST" action="{{ route('tasks.update',$task) }}">@csrf @method('PUT')
        @include('tasks._form')
        <div class="mt-4 flex justify-end gap-2"><a class="mf-btn" href="{{ route('tasks.show',$task) }}">Cancel</a><button class="mf-btn mf-btn-primary">Save changes</button></div>
    </form>
</div>
@endsection