@extends('layouts.app')

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

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