@extends('iqec.layouts.app')

@section('content')
    <div class="container-fluid">
        <div class="row page-titles">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="{{ route('authorised-partners.index') }}">Authorised Partners</a></li>
                <li class="breadcrumb-item active"><a href="javascript:void(0)">Edit</a></li>
            </ol>
        </div>
        @include('iqec.partials.flash')
        <div class="card">
            <div class="card-header"><h4 class="card-title">Edit Authorised Partner</h4></div>
            <div class="card-body">
                <form action="{{ route('authorised-partners.update', $authorisedPartner) }}" method="POST" enctype="multipart/form-data">
                    @csrf
                    @method('PUT')
                    @include('iqec.partials.partner-personal-fields', ['record' => $authorisedPartner])
                    @include('iqec.partials.partner-official-fields', ['record' => $authorisedPartner])
                    @include('iqec.partials.promoter-select', ['record' => $authorisedPartner])
                    <button type="submit" class="btn btn-primary">Save</button>
                    <a href="{{ route('authorised-partners.index') }}" class="btn btn-light">Cancel</a>
                </form>
            </div>
        </div>
    </div>
@endsection
