@extends('layouts.app')

@section('title', 'Edit task')
@section('heading', 'Edit task')

@section('content')
    <div class="card">
        <form method="POST" action="{{ route('tasks.update', $task) }}">
            @csrf
            @method('PUT')
            @include('tasks._form', ['task' => $task, 'agents' => $agents, 'leads' => $leads])
            <button type="submit" class="btn btn-primary">Save</button>
            <a href="{{ route('tasks.index') }}" class="btn btn-ghost">Cancel</a>
        </form>
    </div>
@endsection
