@extends('page') @section('content')

Users @if ($company != null) @endif

@if(Session::has('company')) @if(Session::get('company')==1) {!! Form::model($company, ['method' => 'PATCH','route' => ['users.index', $company]]) !!}
{!! Form::select('companies', $companies,$company_id, array('class' => 'form-control form-control-sm','id' => 'company_id')) !!} {!! Form::close() !!}
{!! Form::close() !!}
@else @endif @endif @can('user-create')
@if ($company->id == 0) Add New @else Add New @endif
@endcan
@if ($message = Session::get('success'))
{{ $message }}
@endif
@endsection