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

Profile Info

{{ Form::label('company_name', 'Company Name',array('class' => 'col-sm-4 col-form-label ')) }}
{{ Form::text('company_name', (isset($company->company_name) ? $company->company_name : null), array('class' => 'form-control','required'=>'')) }}
{{ Form::label('address', 'Address',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::textarea('address', (isset($company->address) ? $company->address : null), array('class' => 'form-control','rows'=>'3')) }}
{{ Form::label('phone', 'Phone',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::text('phone', (isset($company->phone) ? $company->phone : null), array('class' => 'form-control phoneNumber')) }}
@if(!isset($company['id']))
{{ Form::label('user_name', 'User Name',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::text('user_name', (isset($company->user_name) ? $company->user_name : null), array('class' => 'form-control','required'=>'')) }}
{{ Form::label('email', 'Email',array('class' => 'col-sm-4 col-form-label','required'=>'')) }}
{{ Form::email('email', (isset($company->email) ? $company->email : null), array('class' => 'form-control','required'=>'')) }}
{{ Form::label('password', 'Password',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::password('password', array('class' => 'form-control',$password)) }} @if(isset($company['company_id'])) Keep password field blank if you dont want to change password @endif
@endif
{{ Form::label('note', ' Notes',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::textarea('note', (isset($company->note) ? $company->note : null), array('class' => 'form-control','rows'=>'3','cols'=>'50')) }}
{{ Form::label('posted_speed', 'Enable Posted Speed',array('class' => 'col-sm-4 col-form-label')) }}
{{ Form::select('posted_speed',['1' => 'Enable','0' => 'Disable'], (isset($company->posted_speed) ? $company->posted_speed : '0') ,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($company->is_active) ? $company->is_active : '1') ,array('class' => 'form-control')) }}

Assign/UnAssign Units

Add User

@if(isset($company['id']))
@else
@endif
@if(isset($company['id']))

User Listing

# Username Email Role Status Actions
@endif
@if(isset($company['id']))
@endif
{{Form::button(' '.$companyAction, array('type' => 'submit', 'class' => 'btn btn-primary ml-3','id'=>'button_company'))}} Cancel
{{ Form::close() }}
@endsection @section('script') @endsection @section('script') @endsection