@include("messages")
<?php
$roles = Config::get('params.roles');
$required = "";
//d($roles,1);
//$currency = $currencies[Config::get('params.currency_default')]['symbol'];
?>

<div class="row">
    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('First Name') !!}
            {!! Form::text('firstName', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>


    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Last Name') !!}
            {!! Form::text('lastName', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Email') !!}
            {!! Form::text('email', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>

    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Phone') !!}
            {!! Form::text('phone', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>
</div>
<div class="row">
        <div class="col-sm-6">
        <div class="d-flex justify-content-start flex-wrap">
            <div class="custom-control custom-switch custom-switch-success mr-2 mb-1">
                <p class="mb-0">Status</p>
                <input type="checkbox" 
                       
                       @if(isset($model->status) && $model->staus=="1")
                       checked 
                       @endif
                       class="custom-control-input" name="status" id="status" value="1">
                <label class="custom-control-label" for="status">Status</label>
            </div>
        </div>
    </div>
    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Password') !!}
            {!! Form::password('password',array('placeholder'=>'Password','class' => 'form-control')); !!}
        </div>
    </div>


</div>
<br clear="all" />
<div class="row">
    <div class="col-md-8">
        <button type="submit" class="btn btn-primary mr-1 mb-1 waves-effect waves-light">Save</button>
        <a href="{{url('customers')}}" class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light">Cancel</a>
    </div>
</div>