@extends('layouts.dealer')

@section('content')    
    {!! Form::model($dealer, ['method' => 'PUT', 'route' => ['users.update', $dealer->id]]) !!}
        <div class="form-body control-group">
            <h3 class="card-title">Personal Detail</h3>
            <span class="help-block bg-danger">To update please contact administrator</span>

            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        {!! Form::label('full_name', 'Full Name*', ['class' => 'control-label', 'required']) !!}
                        {!! Form::text('full_name', old('full_name'), ['class' => 'form-control form-control-normal','id'=>'full_name', 'placeholder' => 'Full Name here', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('full_name'))
                            <p class="help-block error">
                                {{ $errors->first('full_name') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        {!! Form::label('username', 'Username*', ['class' => 'control-label', 'required']) !!}
                        {!! Form::text('username', old('username'), ['class' => 'form-control form-control-normal','id'=>'username', 'placeholder' => 'Username here', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('username'))
                            <p class="help-block error">
                                {{ $errors->first('username') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('gender', 'Gender*', ['class' => 'control-label']) !!}
                        {!! Form::select('gender',array('Male', 'Female'), old('gender'), ['class' => 'form-control form-control-normal', 'required', 'placeholder' => 'Select', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('gender'))
                            <p class="help-block error">
                                {{ $errors->first('gender') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('mobileno', 'Mobile no.*', ['class' => 'control-label']) !!}
                        {!! Form::number('mobileno', old('mobileno'), ['class' => 'form-control form-control-normal', 'id'=>'mobileno', 'placeholder' => 'Mobile No.', 'maxlength' => '10', 'required', 'disabled'=>true]) !!}
                        <p class="help-block">Do not enter 0 or +91 before the mobile number</p>
                        @if($errors->has('mobileno'))
                            <p class="help-block error">
                                {{ $errors->first('mobileno') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                    {!! Form::label('email', 'Email*', ['class' => 'control-label']) !!}
                    {!! Form::email('email', old('email'), ['class' => 'form-control form-control-normal', 'id' => 'email', 'placeholder' => 'Email', 'required', 'disabled'=>true]) !!}
                    <p class="help-block"></p>
                    @if($errors->has('email'))
                        <p class="help-block">
                            {{ $errors->first('email') }}
                        </p>
                    @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('panno', 'Pan no.*', ['class' => 'control-label']) !!}
                        {!! Form::text('panno', old('panno'), ['class' => 'form-control form-control-normal', 'placeholder' => 'Pan No.', 'disabled'=>true]) !!}
                        <p class="help-block">If you don't have PAN card please enter "N/A"</p>
                        @if($errors->has('panno'))
                            <p class="help-block error">
                                {{ $errors->first('panno') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                    {!! Form::label('aadhar', 'Aadhar*', ['class' => 'control-label']) !!}
                    {!! Form::aadhar('aadhar', old('aadhar'), ['class' => 'form-control form-control-normal', 'id' => 'aadhar', 'placeholder' => 'Aadhar', 'required', 'disabled'=>true]) !!}
                    <p class="help-block"></p>
                    @if($errors->has('aadhar'))
                        <p class="help-block">
                            {{ $errors->first('aadhar') }}
                        </p>
                    @endif
                    </div>
                </div>                
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('dob', 'Date of Birth*', ['class' => 'control-label']) !!}
                        {!! Form::text('dob', old('dob'), ['class' => 'form-control form-control-normal mydatepicker', 'placeholder' => 'Date of birth', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('dob'))
                            <p class="help-block error">
                                {{ $errors->first('dob') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                    {!! Form::label('address', 'Address', ['class' => 'control-label']) !!}
                    {!! Form::textarea('address', old('address'), ['class' => 'form-control form-control-normal', 'placeholder' => 'address', 'rows'=> '2', 'disabled'=>true]) !!}
                    <p class="help-block"></p>
                    @if($errors->has('address'))
                        <p class="help-block">
                            {{ $errors->first('address') }}
                        </p>
                    @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                    {!! Form::label('pincode', 'Pincode', ['class' => 'control-label']) !!}
                    {!! Form::text('pincode', old('pincode'), ['class' => 'form-control form-control-normal', 'placeholder' => 'pincode', 'disabled'=>true]) !!}
                    <p class="help-block"></p>
                    @if($errors->has('pincode'))
                        <p class="help-block">
                            {{ $errors->first('pincode') }}
                        </p>
                    @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                    {!! Form::label('city', 'City', ['class' => 'control-label']) !!}
                    {!! Form::text('city', old('city'), ['class' => 'form-control form-control-normal', 'placeholder' => 'city', 'disabled'=>true]) !!}
                    <p class="help-block"></p>
                    @if($errors->has('city'))
                        <p class="help-block">
                            {{ $errors->first('city') }}
                        </p>
                    @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                    {!! Form::label('state', 'State', ['class' => 'control-label']) !!}
                    {!! Form::text('state', old('state'), ['class' => 'form-control form-control-normal', 'placeholder' => 'state', 'disabled'=>true]) !!}
                    <p class="help-block"></p>
                    @if($errors->has('state'))
                        <p class="help-block">
                            {{ $errors->first('state') }}
                        </p>
                    @endif
                    </div>
                </div>
            </div>
            <h3 class="card-title">Account Detail</h3>
            <div class="row">
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('bank_accnt_no', 'Bank Account No', ['class' => 'control-label']) !!}
                        {!! Form::text('bank_accnt_no', old('bank_accnt_no'), ['class' => 'form-control form-control-normal', 'placeholder' => 'Account No', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('bank_accnt_no'))
                            <p class="help-block error">
                                {{ $errors->first('bank_accnt_no') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('bank_name', 'Bank Name', ['class' => 'control-label']) !!}
                        {!! Form::text('bank_name', old('bank_name'), ['class' => 'form-control form-control-normal', 'placeholder' => 'Bank Name', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('bank_name'))
                            <p class="help-block error">
                                {{ $errors->first('bank_name') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('branch_name', 'Branch Name', ['class' => 'control-label']) !!}
                        {!! Form::text('branch_name', old('branch_name'), ['class' => 'form-control form-control-normal', 'placeholder' => 'Branch Name', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('branch_name'))
                            <p class="help-block error">
                                {{ $errors->first('branch_name') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('accnt_type', 'Account Type', ['class' => 'control-label']) !!}
                        {!! Form::select('accnt_type', ['Saving', 'Current', 'NRE', 'NRO', 'Other'], old('accnt_type'), ['class' => 'form-control form-control-normal', 'placeholder' => 'Select', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('accnt_type'))
                            <p class="help-block error">
                                {{ $errors->first('accnt_type') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('ifsc', 'IFSC', ['class' => 'control-label']) !!}
                        {!! Form::text('ifsc', old('ifsc'), ['class' => 'form-control form-control-normal', 'placeholder' => 'IFSC', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('ifsc'))
                            <p class="help-block error">
                                {{ $errors->first('ifsc') }}
                            </p>
                        @endif
                    </div>
                </div>
            </div>
            <h3 class="card-title">Nominee Detail</h3>
            <div class="row">
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('nom_name', 'Nominee Name', ['class' => 'control-label']) !!}
                        {!! Form::text('nom_name', old('nom_name'), ['class' => 'form-control form-control-normal', 'placeholder' => 'Nominee Full Name here', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('nom_name'))
                            <p class="help-block error">
                                {{ $errors->first('nom_name') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('nom_relation', 'Nominee Relation', ['class' => 'control-label']) !!}
                        {!! Form::text('nom_relation', old('nom_relation'), ['class' => 'form-control form-control-normal', 'placeholder' => 'Nominee Relation here', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('nom_relation'))
                            <p class="help-block error">
                                {{ $errors->first('nom_relation') }}
                            </p>
                        @endif
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        {!! Form::label('nom_dob', 'Nominee Date of Birth', ['class' => 'control-label']) !!}
                        {!! Form::text('nom_dob', old('nom_dob'), ['class' => 'form-control form-control-normal mydatepicker', 'placeholder' => 'Nominee Date of Birth', 'disabled'=>true]) !!}
                        <p class="help-block"></p>
                        @if($errors->has('nom_dob'))
                            <p class="help-block error">
                                {{ $errors->first('nom_dob') }}
                            </p>
                        @endif
                    </div>
                </div>
            </div>
        </div>
    <!-- {!! Form::submit('Update', ['class' => 'btn btn-danger']) !!} -->
    {!! Form::close() !!}
@stop