Advertisement
misolutions

index.php ~ training

Mar 15th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.30 KB | None | 0 0
  1. @extends('layouts.generic')
  2. @section('content')
  3.     @if (session('success'))
  4.         <div class="alert alert-success">
  5.             {{ session('status') }}
  6.         </div>
  7.     @endif
  8.     <div class="container">
  9.         <div class="row justify-content-center">
  10.             <div class="col-md-8">
  11.  
  12.                 <div class="card info">
  13.  
  14.                     <div class="card-header">Listing Trainings for Update/Delete
  15.  
  16.                         <form method="get" action="{{ url('trainings') }}" class="form-inline">
  17.                             @csrf
  18.                             <input type="text" id="txtsearch" name="txtsearch" class="form-control">
  19.                             <button type="submmit" class="btn btn-primary">
  20.                                 <i class="fa fa-search"></i>
  21.                             </button>
  22.                         </form>
  23.  
  24.                     </div>
  25.  
  26.                     <div class="card-body">
  27.                        
  28.  
  29.                         <table class="table table-striped">
  30.                         <thead>
  31.                           <tr>
  32.                             <th>ID</th>
  33.                             <th>Training Name</th>
  34.                             <th>Desc</th>
  35.                             <th>Action</th>
  36.                             <th></th>
  37.                           </tr>
  38.                         </thead>
  39.                         <tbody>
  40.                           @foreach($trainings as $training)
  41.                           <tr>
  42.                             <td>{{$training['id']}}</td>
  43.                             <td>{{$training['trainingname']}}</td>
  44.                             <td>{{$training['desc']}}</td>
  45.                               <td></td>
  46.                               <td>
  47.                                  
  48.                             </td>
  49.                           </tr>
  50.                           @endforeach
  51.                         <tbody>
  52.                         </table>
  53.                            
  54.                     </div>
  55.                 </div>
  56.             </div>
  57.         </div>
  58.     </div>
  59. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement