Файл: src/resources/views/users/index.blade.php
Строк: 75
<?php
@extends('layouts.app')
@section('breadcrumb')
<ul class="breadcrumb">
<li>
<a href="{{route('get.dashboard')}}" title="{{trans('breadcrumb.dashboard')}}">
<span class="lnr lnr-home"></span> {{trans('breadcrumb.dashboard')}}
</a>
</li>
<li>
{{trans('breadcrumb.users')}}
</li>
</ul>
@stop
@section('content')
<div class="row">
<div class="col-sm-12">
@if(Session::get("ErrorMessage"))
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">{{trans('messages.failure_header')}}!</span>
{{Session::get("ErrorMessage")}}
</div>
@endif
@if(Session::get("SuccessMessage"))
<div class="alert alert-success" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<strong>{{trans('messages.success_header')}}!</strong>
{{Session::get("SuccessMessage")}}
</div>
@endif
<div class="panel panel-flat">
<div class="panel-heading">
<h5>{!! trans('user.list_panel_title') !!}</h5>
</div>
<div class="panel-table">
<table class="table users">
<thead>
<tr>
<th class="text-center">#</th>
<th>{{trans('user.label_username')}}</th>
<th>{{trans('user.label_email')}}</th>
<th>{{trans('user.label_name')}} {{trans('user.label_surname')}}</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($Users as $User)
<tr>
<td>
<img src="http://www.gravatar.com/avatar/{{$User->Email}}" width="60" height="60" class="img-circle text-center">
</td>
<td><strong>{{$User->Username}}</strong></td>
<td>{{$User->Email}}</td>
<td>{{$User->Name}} {{$User->Surname}}</td>
<td>
<a href="{{route('users::edit',$User->UserID)}}" data-toggle="tooltip" title="Edit"><i class="glyphicon glyphicon-edit"></i></a>
<a href="{{route('users::delete',$User->UserID)}}" data-toggle="tooltip" title="Delete"><i class="glyphicon glyphicon-remove"></i></a>
</td>
</tr>
@endforeach
@if(empty($Users))
<tr>
<td colspan="5">
There is no record exists on the Companies table.
</td>
</tr>
@endif
</tbody>
</table>
</div>
<div class="panel-body">
<nav>
{{$Users->render()}}
</nav>
</div>
</div>
</div>
</div>
@stop
?>