PHP Classes

File: resources/views/user.blade.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   Laravel Blogging Platform   resources/views/user.blade.php   Download  
File: resources/views/user.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 4 years ago
Size: 1,452 bytes
 

Contents

Class file image Download
@extends('layouts.app')

@section('title', 'All User')
@section('title-dashboard', 'Dashboard')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
          @if(count($allUser) > 0)
          <h1>List of User</h1>
          <hr>
          <div class="table-responsive">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>No.</th>
                        <th>Name</th>
                  <th>Email</th>
                  <th>Date</th>
                        <th colspan="2">Action</th>
                    </tr>
                </thead>
                <tbody>
                <?php $counter = 1; ?>
@foreach($allUser as $aUser)
                      <tr>
                          <th><?php echo $counter++; ?></th>
                          <td>{{ $aUser->name }}</td>
                    <td>{{ $aUser->email }}</td>
                    <td>{{ $aUser->updated_at }}</td>
                          <td><a href="{{ action('HomeController@profileid', $aUser->id) }}">View</a></td>
                          <td><a href="{{ action('HomeController@deleteuser', $aUser->id) }}">Delete</a></td>
                      </tr>
                @endforeach
                </tbody>
            </table>
          </div>
          @else
          <br><div class="alert alert-warning" role="alert">Empty Blog! Please click Add Blog to add blog.</div>
          @endif
        </div>
    </div>
</div>
@endsection