@extends('layouts.app') @section('title') Role Permissions @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Role Permission Management

{{csrf_field()}}

@foreach($permissions as $p) @if($p->department) @if($department == $p->department) @foreach($roles as $role) @if(\App\PermissionRole::where([['role_id',$role->id],['permission_id',$p->id]])->first()) @else @endif @endforeach @else @foreach($roles as $role) @endforeach @foreach($roles as $role) @if(\App\PermissionRole::where([['role_id',$role->id],['permission_id',$p->id]])->first()) @else @endif @endforeach @endif @endif @endforeach
{{$p->display_name}}
@if($department == \App\Permission::SALES) SALES DEPARTMENT PERMISSIONS @elseif($department == \App\Permission::ACCOUNTS) ACCOUNTS DEPARTMENT PERMISSIONS @elseif($department == \App\Permission::PROCUREMENT) PROCUREMENT DEPARTMENT PERMISSIONS @endif
Access   {{$role->name}}
{{$p->display_name}}
@stop @section('js') @stop