PHP Classes

File: resources/views/news/remove.blade.php

Recommend this page to a friend!
  Classes of uche  >  PHP News Website and API  >  resources/views/news/remove.blade.php  >  Download  
File: resources/views/news/remove.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP News Website and API
Manage news articles for a site and access via API
Author: By
Last change:
Date: 10 months ago
Size: 2,528 bytes


Class file image Download
    $categories = \App\Category::all();
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header">All News</div>
                    <div class="card-body">
                        @if (session('status'))
                            <div class="alert alert-success" role="alert">
                                {{ session('status') }}
                        <table class="table table-bordered">
                                <th>Created By</th>
                                    @foreach($articles as $article)
                                            <td>{{date('d-m-Y', strtotime($article->created))}}</td>
                                                <form action="" method="post" onsubmit="return confirm('Are you sure you want to delete this news?');">
                                                    <input type="hidden" name="article_id" value="{{$article->article_id}}">
                                                    <button class="btn btn-danger btn-sm">Delete</button>

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