@extends('layouts.app')

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

@section('content')
<form id="updateDealForm" method="POST" action="{{ route('deals.update', $deal->id) }}" data-testid="professional-deal-edit">
    @csrf
    @method('PUT')
    <div class="page-header">
        <div class="page-header-left d-flex align-items-center">
            <a href="{{ route('deals.view', ['id' => $deal->id]) }}" class="avatar-text avatar-md me-3" title="Back to Deal"><i class="feather-arrow-left"></i></a>
            <div class="page-header-title"><h5>Edit Deal</h5><small class="text-muted">Update {{ $deal->name }} and its customer document.</small></div>
        </div>
    </div>
    <div class="main-content deal-form-page">
        <div class="card deal-form-card">@include('deals.partials.professional-form')</div>
    </div>
</form>
@include('deals.partials.professional-form-assets')
@endsection
