<?php $__env->startSection('title', app_name() . ' | '. __('labels.backend.access.credit.transfer')); ?>

<?php $__env->startSection('content'); ?>
<div class="card">
    <div class="card-body">
        <div class="row">
            <div class="col-sm-5">
                <h4 class="card-title mb-0">
                    <?php echo app('translator')->get('labels.backend.access.credit.transfer'); ?>
                </h4>
            </div><!--col-->
            <div class="col-sm-7 ">
            <div class="btn-toolbar float-right">
                <span> <?php echo app('translator')->get('labels.backend.access.credit.title'); ?> : <?php echo e(!empty($userDetail->credit) ? $userDetail->credit : 0); ?></span>
                </div>
            </div><!--col-->
        </div><!--row-->

        <div class="row mt-4">
            <div class="col">
            <div class="form-group row">
                        <?php echo e(html()->label(__('validation.attributes.backend.access.users.username'))
                            ->class('col-md-2 form-control-label')
                            ->for('name')); ?>


                        <div class="col-md-10">
                        <?php echo e(!empty($userExist->user) ? $userExist->user->first_name." ".$userExist->user->last_name: 0); ?>

            
                        </div><!--col-->
                        
                    </div><!--form-group-->
                    <div class="form-group row">
                        <?php echo e(html()->label(__('validation.attributes.backend.access.credit.credit'))
                            ->class('col-md-2 form-control-label')
                            ->for('name')); ?>


                        <div class="col-md-10">
                        <?php echo e(!empty($userExist) ? $userExist->credit: 0); ?>

            
                        </div><!--col-->
                        
                    </div><!--form-group-->
            </div>
            </div>
            <hr>
            <?php echo e(html()->form('POST', route('admin.auth.credit.store', $userExist->user_id))->class('form-horizontal')->open()); ?>

            <div class="row mt-4 mb-4">
                    <div class="col">
                        <div class="form-group row">
                            <?php echo e(html()->label(__('validation.attributes.backend.access.credit.amountTransfer'))->class('col-md-2 form-control-label')->for('first_name')); ?>


                            <div class="col-md-10">
                                <?php echo e(html()->number('amount')
                                    ->class('form-control')
                                    ->placeholder(__('validation.attributes.backend.access.credit.amountTransfer'))
                                    ->attribute('maxlength', 191)
                                    ->required()
                                    ->autofocus()); ?>

                            </div><!--col-->
                         </div><!--form-group-->
                        
                        
                        <div class="form-group row">
                            <?php echo e(html()->label(__('validation.attributes.backend.access.credit.transactionPassword'))->class('col-md-2 form-control-label')->for('first_name')); ?>


                            <div class="col-md-10">
                                <?php echo e(html()->password('transactionpassword')
                                    ->class('form-control')
                                    ->placeholder(__('validation.attributes.backend.access.credit.transactionPassword'))
                                    ->attribute('maxlength', 191)
                                    ->required()
                                    ->autofocus()); ?>

                                    <?php echo e(html()->hidden('credittype','transfer')
                                    ->class('form-control')); ?>    
                            </div><!--col-->
                        </div><!--form-group-->
            </div>            

        </div><!--card-body-->
</div><!--card-->

<div class="card-footer clearfix">
                <div class="row">
                    <div class="col">
                        <?php echo e(form_cancel(route('admin.auth.credit.index'), __('buttons.general.cancel'))); ?>

                    </div><!--col-->

                    <div class="col text-right">
                        <?php echo e(form_submit(__('buttons.general.crud.create'))); ?>

                    </div><!--col-->
                </div><!--row-->
            </div><!--card-footer-->
        </div><!--card-->
    <?php echo e(html()->form()->close()); ?>



<?php $__env->stopSection(); ?>        
<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/licenseriolabz/public_html/license-repo/resources/views/backend/credit/transfer.blade.php ENDPATH**/ ?>