@extends('layouts.app')

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

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