@extends('layouts.master') @section('title', 'Group') @section('pageheader') @endsection @section('breadcrumb') {!! csrf_field() !!} @endsection @section('content')
@include('layouts.includes.alert') @if(isset($group['id'])) {{ Form::model($group, array('url' => url('/group/edit/id',['id'=>$group['id']]), 'id'=>'group_form', 'method' => 'POST','files'=>true,'enctype' => 'multipart/form-data')) }} @else {{ Form::open(array('route' => 'group.create', 'id'=>'group_form','files'=>true,'enctype' => 'multipart/form-data')) }} @endif

Basic

@role('SuperAdmin')
{{ Form::label('company_id', 'Company',array('class' => 'col-sm-4 col-form-label ')) }}
@endrole
{{ Form::label('name', 'Name',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::text('name', (isset($group->name) ? $group->name : null), array('class' => 'form-control')) }}
{{ Form::label('is_active', 'Status',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::select('is_active',['1' => 'Active','0' => 'InActive'], (isset($group->is_active) ? $group->is_active : '1') ,array('class' => 'form-control')) }} {{ Form::hidden('unit_id', '', array('id' => 'unit_id')) }}

Assign/UnAssign Units

@if(isset($action) && $action == "create" && $is_admin)
Please select company.
@else
@if(!empty($units)) @foreach($units as $unit)
@endforeach @endif
@endif
{{Form::button(' '.$groupAction, array('type' => 'submit', 'class' => 'btn btn-primary ml-3','id'=>'button_group'))}} Cancel
{{ Form::close() }}
@endsection @section('script') @endsection