@extends('layouts.main') @section('title') Digital Palika | Roles @endsection @section('custom-css') @endsection @section('content')
रोल एडित
@if (count($errors) > 0)
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (Session::has('message'))

{{ Session::get('message') }}

@endif {!! Form::model($role, ['method' => 'PATCH', 'route' => ['roles.update', $role->id]]) !!}
नाम: {!! Form::text('name', null, ['placeholder' => 'नाम', 'class' => 'form-control']) !!}
{{-- @foreach ($permission as $value) --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- @endforeach --}}
{{-- {{ Form::checkbox('permission[]', $value->id, in_array($value->id, $rolePermissions) ? true : false, array('class' => 'name')) }} --}}
अनुमतिहरू: @if (!empty($rolePermissions)) @foreach ($permission as $value) @foreach ($rolePermissions as $rolePermission) @if ($rolePermission == $value->id) @endif @endforeach @endforeach @endif
@endsection @section('custom-script') @endsection