@extends('admin.layouts.master') @section('title') Add Staff @stop @section('content')
Staff List
@foreach($admins as $admin) @if ($admin->id != 1 || Auth::admin()->user()->id == 1) @endif @endforeach
ID First Name Last Name Email Active Expires Roles Action
{{ $admin->id }} {{ $admin->first_name }} {{ $admin->last_name }} {{ $admin->email}} {{ $admin->is_active ? 'Yes' : 'No' }} {{ ($admin->expires_at<>NULL)?$admin->expires_at:"" }}
    @foreach($admin->roles as $role)
  • {{ $role->display_name }}
  • @endforeach
Edit @if($admin->id != 1) @if ($admin->is_active) Deactivate @else Activate @endif @endif
@stop @stop @section('scripts') @parent {{ HTML::script('assets/global/plugins/datatables/media/js/jquery.dataTables.min.js') }} {{ HTML::script('assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js') }} @stop