PHP Classes

File: resources/views/livewire/post-delete.blade.php

Recommend this page to a friend!
  Classes of Busari Ridwan  >  Laravel Livewire CRUD  >  resources/views/livewire/post-delete.blade.php  >  Download  
File: resources/views/livewire/post-delete.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Livewire CRUD
CRUD application implemented with Laravel Livewire
Author: By
Last change:
Date: 7 months ago
Size: 1,251 bytes


Class file image Download
    <a href="#" data-toggle="modal" data-target="#delete{{$post->id}}" class="text-decoration-none">x</a>

    <div class="modal" id="delete{{$post->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <form wire:submit.prevent="deletePost">
                    <div class="modal-header">
                        <h5 class="modal-title">Delete {{$post->title}}</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                    <div class="modal-body">
                        <p>Are you sure you want to delete <b>{{ $post->title }}</b></p>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-danger">Proceed</button>
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

For more information send a message to info at phpclasses dot org.