@extends('user::layouts.master') @section('content')

Manage Companies

@include('layouts.flash.alert')
{!! Form::open(array('route' => array('permissions.update'),'id'=>'permission')) !!}

Company : {{ $company->company_name }}

*
@php $privious_value = ''; $i=0; foreach($permissions as $permission){ $newPermission[$permission->module][$i]=$permission; $i++; } @endphp
@foreach($newPermission as $key=> $newpermission) @if($key != 'purchaseorders') @foreach($newpermission as $permission) @endforeach @endif @endforeach
Section Read Write
{{$key }}
id, $permissionsIds))?'':'checked'}}>
@php $privious_value = $permission->module; @endphp
@if(Auth::user()->roles->first()->slug =='super_admin')
{{Form::label('default_permission', 'Set Permission')}} {!!Form::select('default_permission', ['0'=>'Set Custom Company Permission','1'=>'Reset Default Permission'], $is_default, ['class' => 'form-control'])!!}
@endif
{{ Form::close() }}
@stop @push('scripts') @endpush