| Path : /var/www/html/usd_loan_system/resources/views/user/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/usd_loan_system/resources/views/user/data.blade.php |
@extends('layouts.master')
@section('title')
{{ translate('user') }}
@endsection
@section('content')
<div class="panel panel-white">
<div class="panel-heading">
<h6 class="panel-title">{{ translate('user') }}</h6>
<div class="heading-elements">
@if(Sentinel::hasAccess('users.create'))
<a href="{{ url('user/create') }}" class="btn btn-info btn-xs">
{{ translate('add user') }}
</a>
@endif
</div>
</div>
<div class="panel-body table-responsive">
<table class="table table-striped table-hover table-condensed" id="data-table">
<thead>
<tr>
<th>{{ translate('name') }}</th>
<th>{{ translate('gender') }}</th>
<th>{{ translate('phone') }}</th>
<th>{{ translate('email') }}</th>
<th>{{ translate('max_approval') }}</th>
<th>{{ translate('role') }}</th>
<th>{{ translate('action') }}</th>
</tr>
</thead>
<tbody>
@forelse($data as $key)
<tr>
<td>{{ $key->first_name }} {{ $key->last_name }}</td>
<td>{{ $key->gender }}</td>
<td>{{ $key->phone }}</td>
<td>{{ $key->email }}</td>
<td class="credit">{{ $key->max_approval?currency_converter($key->max_approval, 2):"" }}</td>
<td>
@if(!empty($key->roles))
@if(!empty( $key->roles->first()))
<span class="label label-danger">{{ $key->roles->first()->name }} </span>
@endif
@endif
</td>
<td>
<ul class="icons-list">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-menu9"></i>
</a>
<ul class="dropdown-menu dropdown-menu-right">
@if(Sentinel::hasAccess('users.view'))
<li>
<a href="{{ url('user/'.$key->id.'/show') }}"><i
class="fa fa-search"></i>
{{ translate('detail') }}</a>
</li>
@endif
@if(Sentinel::hasAccess('users.update'))
<li>
<a href="{{ url('user/'.$key->id.'/edit') }}"><i
class="fa fa-edit"></i>
{{ translate('edit') }}</a>
</li>
@endif
@if(Sentinel::hasAccess('users.delete'))
<li>
<a href="{{ url('user/'.$key->id.'/delete') }}"
class="delete"><i
class="fa fa-trash"></i>
{{ translate('delete') }}</a>
</li>
@endif
</ul>
</li>
</ul>
</td>
</tr>
@empty
<tr class="odd text-center">
<td colspan="10" class="dataTables_empty">{{ translate('zeroRecords') }}</td>
</tr>
@endforelse
</tbody>
</table>
{{ $data->withQueryString()->links() }}
</div>
</div>
@endsection
@section('footer-scripts')
<script>
</script>
@endsection