@extends('layouts.app') @section('content')

{{ ($senddata->id != '') ? 'Edit' : 'Add' }} Role

@if(count($errors) > 0) @endif {!! Form::model($senddata, ['route' => $route, 'method' => $method, 'id'=>'role_form' , 'files' => true,'class' => 'form']) !!}
{{ Form::text('name',($senddata->id != '') ? $senddata->name : old('name'),['class' => 'form-control','data-error' => 'Enter Role Name','placeholder'=>'Enter Role Name'] ) }}
@if ($senddata->id)
{!! Form::select('status',['1'=>'Active','0'=>'In Active'],($senddata->id != '') ? $senddata->status : '',['class' => 'form-control']) !!}
@endif @foreach($all_permissions as $key=>$all_permission)

{{ $key }}

@foreach($all_permission as $key=>$ls_permission)
@endforeach

@endforeach
Cancel
{!! Form::close() !!}
@endsection @section('javascript') @endsection