<form wire:submit.prevent="edit">
    <div class="row">
        <h5 class="lead">Sender Information {{ $shipment_form->photo==null }} </h5>
        @include('partials.party-details', ['party' => 'sender'])
    </div>

    <hr class="divider">

    <div class="row mt-4">
        <h5 class="lead">Receiver Information</h5>
        @include('partials.party-details', ['party' => 'receiver'])
    </div>

    <hr class="divider">

    <div class="row mt-4">
        <h5 class="lead">Shipment Information</h5>
        @include('partials.shipment-details')
    </div>

    <hr class="divider">
    <div class="row mt-3">
        <div class="col-md-6">
            <div class="form-check form-switch">
                <input class="form-check-input" type="checkbox" role="switch" id="shipment-status" wire:model.live="shipment_form.is_active" @checked($shipment->is_active)>
                <label class="form-check-label fw-bold mx-2" for="shipment-status">Shipment Status</label>
            </div>
        </div>
    </div>

    <div class="row mt-4">
        <x-form.submit target="edit" text="Edit shipment" />
    </div>
</form>