Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

UmaWorld's avatar

Issue with delete functionality while implementing two places using livewire

I have already createProposal,EditProposal and showProposal component

in view folder there is Proposal folder within these createProposal.blade.php {{ __('Create Proposal') }}

<div class="py-12">
    <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
        <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
            <div class="p-6 bg-white border-b border-gray-200">
                @livewire('create-proposal')
            </div>
        </div>
    </div>
</div>
<div class="py-12">
    <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
        <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
            <div class="p-6 bg-white border-b border-gray-200">
                @livewire('edit-proposal',['proposal' => $proposal])
            </div>
        </div>
    </div>
</div>

#my question is do we need to create deleteComponent for this since we have to implement this functionality in two places i.e dashboard and edit page

0 likes
1 reply
UmaWorld's avatar

I want to implement delete fucntionality in two places pls anyone help me want to show alert message using sweetalert

Please or to participate in this conversation.