<?php $__env->startSection('css'); ?>
<?php echo toastr_css(); ?>
<link href="<?php echo e(URL::asset('assets/plugins/fileuploads/css/fileupload.css')); ?>" rel="stylesheet" type="text/css" />
<!---Internal Fancy uploader css-->
<link href="<?php echo e(URL::asset('assets/plugins/fancyuploder/fancy_fileupload.css')); ?>" rel="stylesheet" />
<?php $__env->startSection('title'); ?>
    <?php echo e(trans('Refund_trans.Refund_information')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-header'); ?>
<!-- breadcrumb -->
<div class="page-title">
    <div class="row">
        <div class="col-sm-6">
            <h4 class="mb-0"> <?php echo e(trans('Refund_trans.Refund_information')); ?></h4>
        </div>
        <div class="col-sm-6">
            <ol class="breadcrumb pt-0 pr-0 float-left float-sm-right ">
                <li class="breadcrumb-item"><a href="#" class="default-color"><?php echo e(trans('main_trans.Dashboard')); ?></a></li>
                <li class="breadcrumb-item active"> <?php echo e(trans('Refund_trans.Refund_information')); ?></li>
            </ol>
        </div>
    </div>
</div>
<!-- breadcrumb -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- row -->
<div class="row">
    <div class="col-md-12 mb-30">
        <div class="card card-statistics h-100">
            <?php if($errors->any()): ?>
            <div class="alert alert-danger">
                <ul>
                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                       <h4> <li><?php echo e($error); ?></li></h4>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div>
            <?php endif; ?>
            
            <div class="card-body">
                <div class="card-body">
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('استرداد')): ?>
                    <a href="<?php echo e(route('refunds.index')); ?>">
                        <button type="button" class="btn btn-primary l-t-20">
                            <?php echo e(trans('main_trans.back')); ?>

                        </button>
                        <br><br>
                    </a>
                    <?php endif; ?>
                     <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('isUser')): ?>
                    <a href="<?php echo e(url('/dashboard')); ?>">
                        <button type="button" class="btn btn-primary l-t-20">
                            <?php echo e(trans('main_trans.back')); ?>

                        </button>
                        <br><br>
                    </a>
                    <?php endif; ?>
                    <div class="tab nav-border">
                        <ul class="nav nav-tabs" role="tablist">
                            <li class="nav-item">
                                <a class="nav-link active show" id="home-02-tab" data-toggle="tab" href="#home-02"
                                    role="tab" aria-controls="home-02"
                                    aria-selected="true"><?php echo e(trans('Refund_trans.Refund_information')); ?></a>
                            </li>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اجراء استرداد')): ?>
                           
                            <li class="nav-item">
                                <a class="nav-link" id="profile-03-tab" data-toggle="tab" href="#profile-03"
                                    role="tab" aria-controls="profile-03"
                                    aria-selected="false"><?php echo e(trans('Refund_trans.Refund_prosess')); ?></a>
                            </li>
                             <?php endif; ?>
                            
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane fade active show" id="home-02" role="tabpanel"
                                aria-labelledby="home-02-tab">
                                <table class="table table-hover" style="text-align:right">
                                    <tbody>
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Refund_trans.doc')); ?></td>
                                            <td>
                                                <?php if($refund->type == '1'): ?>
                                                <span class="label text-info">
                                                    <?php echo e(trans('Refund_trans.Certificat')); ?>

                                                </span>
                                                <?php elseif($refund->type == '2'): ?>
                                                <span class="label text-info">
                                                    <?php echo e(trans('Refund_trans.Statment')); ?>

                                                </span>
                                                <?php elseif($refund->type == '3'): ?>
                                                <span class="label text-info">
                                                    <?php echo e(trans('Refund_trans.Record')); ?>

                                                </span>
                                                <?php else: ?>
                                                <span class="label text-info">
                                                    <?php echo e(trans('Refund_trans.Register')); ?> 
                                                </span>
                                                <?php endif; ?>
                                            </td>
                                        </tr>
                                        
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Refund_trans.student_name')); ?></td>
                                            <td><?php echo e($refund->user->first_name); ?> </td>
                                        </tr>

                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.notification_number')); ?></td>
                                            <td><?php echo e($refund->notification_number); ?> </td>
                                        </tr>
                                        
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.amount')); ?></td>
                                            <td><?php echo e($refund->amount); ?></td>
                                        </tr>
                                       
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Delivery_trans.request_date')); ?></td>
                                            <td><?php echo e($refund->created_at); ?></td>
                                        </tr>
                                        
                                       <tr>
                                        <th><?php echo e(trans('Delivery_trans.stauts')); ?></th>
                                        <td>
                                            <?php if($refund->stutus == '0'): ?>
                                                <span class="label text-info">
                                                     <?php echo e(trans('Statment_trans.processing')); ?>

                                                </span>
                                            <?php elseif($refund->stutus == '1'): ?>
                                            <span class="label text-success">
                                                <?php echo e(trans('Statment_trans.complate')); ?>

                                            </span>
                                            <?php else: ?>
                                            <span class="label text-danger">
                                                <?php echo e(trans('Statment_trans.reject')); ?>

                                            </span>
                                            <?php endif; ?>
                                        </td>
                                       </tr>
                                       <tr>
                                        <?php if(isset($refund->note)): ?>
                                        <td scope="row"><?php echo e(trans('Delivery_trans.note')); ?></td>
                                        <td><?php echo e($refund->note); ?></td>
                                        <?php endif; ?>
                                        </tr>
                                       </tr>
                                        <tr>
                                            <?php if(isset($refund->refund)): ?>
                                            <td scope="row"><?php echo e(trans('Refund_trans.amount2')); ?></td>
                                            <td><?php echo e($refund->refund); ?></td>
                                            <?php endif; ?>
                                         </tr>
                                         
                                         <tr>
                                            <?php if(isset($refund->bank_account)): ?>
                                            <td scope="row"><?php echo e(trans('Refund_trans.bank_account')); ?></td>
                                            <td><?php echo e($refund->bank_account); ?></td>
                                            <?php endif; ?>
                                         </tr>

                                         <tr>
                                            <?php if(isset($refund->account_owner)): ?>
                                            <td scope="row"><?php echo e(trans('Refund_trans.account_owner')); ?></td>
                                            <td><?php echo e($refund->account_owner); ?></td>
                                            <?php endif; ?>
                                         </tr>
                                       
                                    </tbody>
                                </table>
                            </div>

                            <div class="tab-pane fade" id="profile-02" role="tabpanel" aria-labelledby="profile-02-tab">
                                <div class="card card-statistics">
                                    <div class="card-body">
                                        
                                    </div>
                                    <br>
                                    <table class="table center-aligned-table mb-0 table table-hover"
                                        style="text-align:center">
                                        <thead>
                                            <tr class="table-secondary">

                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <img src="<?php echo e(asset('images/bank/' . $refund->notification)); ?>">
                                                </td>
                                            </tr>
                                           
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('اجراء استرداد')): ?>
                            <div class="tab-pane fade" id="profile-03" role="tabpanel" aria-labelledby="profile-03-tab">
                                <div class="card card-statistics">
                                    <div class="card-body">
                                        <?php echo Form::open(['url' => 'RefundsProcess', 'autocomplete' => 'off', 'files' => 'ture' ]); ?>   
                                        <?php echo csrf_field(); ?>
                                       <input type="hidden" name="id" value="<?php echo e($refund->id); ?>">
                                       
                                       <div class="form-group">
                                        <label class="rdiobox"><input name="rdio" value="1"
                                                type="radio"><span> <?php echo e(trans('Certificat_trans.accept')); ?>

                                            </span></label>
                                        </div>
                                        <div class="form-group">
                                            <label class="rdiobox"><input name="rdio" value="2"
                                                    type="radio"><span> <?php echo e(trans('Certificat_trans.reject')); ?>

                                                </span></label>
                                        </div>

                                        <div class="form-group">
                                            <label for="refund"><?php echo e(trans('Refund_trans.amount2')); ?> : <span class="text-danger">*</span></label>
                                            <input  class="form-control"  name="refund" type="number" value="<?php echo e(old('notification_number')); ?>">
                                        </div>

                                        <div class="form-group">
                                            <label for="notification_refund"><?php echo e(trans('Certificat_trans.bank')); ?> : <span class="text-danger">*</span></label>
                                            <input type="file" name="notification_refund" class="dropify"
                                            accept="image/*" data-height="70" />
                                        </div>
                                      
                                        <div class="col-lg-6">
                                            <label for="exampleFormControlTextarea1"><strong><?php echo e(trans('Delivery_trans.deliveries_emp')); ?> : </strong></label>
                                            <textarea name="note" class="form-control" wire:model="Address_Father" id="exampleFormControlTextarea1" rows="4"></textarea>
                                        </div>

                                       <br>

                                        <div class="parsley-input col-md-3 mg-t-20 mg-md-t-0">
                                            <button
                                                class="btn btn-primary btn-block"><?php echo e(trans('main_trans.save')); ?></button>
                                        </div>
                                        </form>

                                        <?php echo Form::close(); ?>

                                    </div>

                                </div>
                            </div>
                            <?php endif; ?>
                            
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <!-- row closed -->
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('js'); ?>
        <?php echo toastr_js(); ?>
        <?php echo app('toastr')->render(); ?>
        <script src="<?php echo e(URL::asset('assets/plugins/fileuploads/js/fileupload.js')); ?>"></script>
        <script src="<?php echo e(URL::asset('assets/plugins/fileuploads/js/file-upload.js')); ?>"></script>
        <!--Internal Fancy uploader js-->
        <script src="<?php echo e(URL::asset('assets/plugins/fancyuploder/jquery.ui.widget.js')); ?>"></script>
        <script src="<?php echo e(URL::asset('assets/plugins/fancyuploder/jquery.fileupload.js')); ?>"></script>
        <script src="<?php echo e(URL::asset('assets/plugins/fancyuploder/jquery.iframe-transport.js')); ?>"></script>
        <script src="<?php echo e(URL::asset('assets/plugins/fancyuploder/jquery.fancy-fileupload.js')); ?>"></script>
        <script src="<?php echo e(URL::asset('assets/plugins/fancyuploder/fancy-uploader.js')); ?>"></script>

    <?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eustedu/Certificates/resources/views/pages/Refunds/show.blade.php ENDPATH**/ ?>