Advertisement
JoseCaraballoRojas

codigo index

Apr 26th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.36 KB | None | 0 0
  1. @extends('materialize.template')
  2.  
  3. @section('page-title', 'Agendas')
  4.  
  5. @section('content')
  6.   <div class="container">
  7.     <div class="row">
  8.       <div class="col s12 m12 l12">
  9.         <h5 class="breadcrumbs-title">Agendas
  10.           <small>Lista de agendas registradas</small>
  11.         <div class="pull-right">
  12.         <ol class="breadcrumbs">
  13.           <li><a href="{{ route('dashboard') }}">@lang('app.home')</a></li>
  14.           <li class="active">Agendas</li>
  15.         </ol>
  16.         </div>
  17.         </h5>
  18.       </div>
  19.     </div>
  20.   </div>
  21.  
  22. <div class="divider"></div>
  23. <br>
  24.  
  25. @include('partials.messages')
  26.  
  27. <div class="row">
  28.     <div class="col s12 m12 l12">
  29.         <a href="{{ route('agendas.create') }}" class="waves-effect waves-light green btn" id="add-user">
  30.             <i class=" large mdi-content-add"></i>
  31.             Agregar Agenda
  32.         </a>
  33.     </div>
  34. </div>
  35. <br>
  36.  
  37. <div class="responsive-table" id="users-table-wrapper">
  38.     <table class="responsive-table striped bordered">
  39.         <thead>
  40.             <th>Agenda</th>
  41.             <th>Direccion</th>
  42.             <th>Area</th>
  43.             <th>Responsable</th>
  44.             <th>@lang('app.registration_date')</th>
  45.             <th class="text-center">@lang('app.action')</th>
  46.         </thead>
  47.         <tbody>
  48.           @if (count($agendas))
  49.             @foreach ($agendas as $agenda)
  50.                 <tr>
  51.                     <td>{{ $agenda->user->username }}</td>
  52.                     <td>{{ $agenda->direccion }}</td>
  53.                     <td>{{ $agenda->area->area }}</td>
  54.                     <td>{{ $agenda->created_at->format('Y-m-d') }}</td>
  55.                     <td class="text-center">
  56.                         <a href="{{ route('agendas.show', $agenda->id) }}"
  57.                           class="btn-floating  waves-effect waves-light green"
  58.                            title="Ver Agenda" data-toggle="tooltip" data-placement="top">
  59.                           <i  class="mdi-action-visibility"></i>
  60.                         </a>
  61.                         <a href="{{ route('agendas.edit', $agenda->id) }}"
  62.                           class="btn-floating  waves-effect waves-light light-blue darken-4" title="Editar Agenda"
  63.                                 data-toggle="tooltip" data-placement="top">
  64.                           <i class="mdi-content-create"></i>
  65.                         </a>
  66.                         <a href="{{ route('agendas.destroy', $agenda->id) }}"
  67.                           class="btn-floating  waves-effect waves-light red darken-2" title="Eliminar Agenda"
  68.                                 data-toggle="tooltip"
  69.                                 data-placement="top"
  70.                                 data-method="GET"
  71.                                 data-confirm-title="Confirme por favor!"
  72.                                 data-confirm-text="Seguro que desea eliminar esta agenda"
  73.                                 data-confirm-delete="Si, la elimine">
  74.                             <i class="mdi-action-delete"></i>
  75.                         </a>
  76.                     </td>
  77.                 </tr>
  78.               @endforeach
  79.           @else
  80.               <tr>
  81.                   <td colspan="6"><em>@lang('app.no_records_found')</em></td>
  82.               </tr>
  83.           @endif
  84.         </tbody>
  85.     </table>
  86.     <div class="text-center">
  87.         {!! $agendas->render() !!}
  88.     </div>
  89.  
  90. </div>
  91. @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement