@extends(Auth::check() && Auth::user()->role->layout == 1 ? 'layouts.admin' : 'layouts.employee') @section('content')

Roles

@include('alert.success') New Role

Role List

{!! Form::open(['url' => '/roles/search', 'method' => 'get']) !!}
{!! Form::text('term', null, ['class' => 'form-control pull-right', 'placeholder' => 'Search']) !!}
{!! Form::close() !!}
@foreach($roles as $role) @endforeach
ID Role Action
{{ $role->id }} {{ $role->role }} @if($role->id != 1)
@if($role->id != 2 && $role->id != 3) @endif
@endif
@endsection