@extends('layouts.app')

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

@section('content')
    <div class="portal-page-header d-flex justify-content-between align-items-center flex-wrap gap-2 mb-3">
        <h1 class="h4 mb-0">Edit lead</h1>
        @if(!empty($returnToMyTasks))
            <a href="{{ route('leads.show', $lead) }}" class="btn btn-portal-outline btn-sm">Back to detail</a>
        @else
            <a href="{{ route('leads.listing') }}" class="btn btn-portal-outline btn-sm">Back to listing</a>
        @endif
    </div>
    <div class="row justify-content-center">
        <div class="col-lg-8">
            <div class="portal-card">
                <div class="card-body">
                    @include('leads.partials.form', ['action' => route('leads.update', $lead), 'method' => 'PUT', 'lead' => $lead, 'statuses' => $statuses, 'tradefairs' => $tradefairs, 'continentsQuick' => $continentsQuick])
                </div>
            </div>
        </div>
    </div>
@endsection
