@extends('layouts.master') @section('page_title', 'Edit User') @section('content')
{{ Form::page_header('Edit User', 'business') }}
{{ Form::open(['url' => $post_url]) }} {{ Form::label_title('Name') }} {{ Form::label_title('Contact Info') }} @if (!$user->super_admin) {{ Form::label_title('Role') }} @endif {{ Form::label_title('Title') }} {{ Form::label_title('Notes') }} @if(!$mailchimp_enabled && $imap_enabled) @endif @if($mailchimp_enabled && isset($mailchimp_interests)) @endif {{ Form::row_checkbox_inline('active', 'Active', $user->active == 1 ? 1 : 0, 0, 12,\App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if($super_admin) {{ Form::row_checkbox_inline('main', 'Main Contact', $business_user->main == 1 ? 1 : 0, 0, 12,\App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_checkbox_inline('can_login', 'User can log into the system', $user->can_login == 1 ? 1 : 0, 0, 12,\App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif {{ Form::separator_row('grey-divider thin-divider') }}
@if($super_admin && isset($imap_enabled) && $imap_enabled) {{ Form::button_link('Mailbox Integration', action('ImapIntegrationController@nylas_signup', compact('business', 'user'))) }} @endif @if($super_admin && !session('resent_reg') && $user->can_login) {{ Form::button_ex('Resend Reg', null, 'resend_registration') }} @else @include('shared._message_all') @endif @if($super_admin) {{ Form::button_link('Add to Another Business', action('BusinessController@add_user_to_business', compact('business', 'user'))) }} {{--@include('shared._relate_search', ['user' => $user])--}} @endif {{ Form::button_save() }} {{ Form::button_link('Cancel', $cancel_btn, 'cancel_btn') }}
{!! Form::close() !!}
@endsection @section('page_script') @endsection @section('page_style') @endsection