<?php $__env->startSection('css'); ?>
    <?php echo toastr_css(); ?>
<?php $__env->startSection('title'); ?>
    <?php echo e(trans('Users_trans.personal_information')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-header'); ?>
<!-- breadcrumb -->
<?php $__env->startSection('PageTitle'); ?>
    <?php echo e(trans('Users_trans.personal_information')); ?>

<?php $__env->stopSection(); ?>
<!-- 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">
                    <a href="<?php echo e(route('certificats.index')); ?>">
                        <button type="button" class="btn btn-primary l-t-20">
                            <?php echo e(trans('main_trans.back')); ?>

                        </button>
                        <br><br> 
                    </a>
                    <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('Users_trans.personal_information')); ?></a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" id="profile-02-tab" data-toggle="tab" href="#profile-02"
                                    role="tab" aria-controls="profile-02"
                                    aria-selected="false"><?php echo e(trans('Users_trans.Attachments')); ?></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('Statment_trans.Result_process')); ?></a>
                            </li>
                            <?php endif; ?>
                            <?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-04"
                                    role="tab" aria-controls="profile-03"
                                    aria-selected="false"><?php echo e(trans('Statment_trans.Pay_process')); ?></a>
                            </li>
                            <?php endif; ?>
                             <?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-05"
                                    role="tab" aria-controls="profile-03"
                                    aria-selected="false"><?php echo e(trans('Certificat_trans.comments')); ?></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>
                                         <?php if(isset($certificat->f_note)): ?>
                                        <tr>
                                            <th scope="row"><?php echo e(trans('Certificat_trans.bank_note')); ?></th>
                                            <td> <?php echo e($certificat->f_note); ?> </td>
                                        </tr>
                                        <?php endif; ?>
                                       <?php if(isset($certificat->comments)): ?>
                                      <tr>
                                          <th scope="row"><?php echo e(trans('Certificat_trans.comments')); ?></th>
                                          <td><?php echo e($certificat->comments); ?> </td>
                                      </tr>
                                      <?php endif; ?>
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.language')); ?></td>
                                            <td>
                                                <?php if($certificat->lang ==["11"]): ?>
                                                <?php echo e(trans('Certificat_trans.Arabic')); ?>

                                                <?php elseif($certificat->lang == ["21"]): ?>
                                                <?php echo e(trans('Certificat_trans.English')); ?>

                                                <?php elseif($certificat->lang == ["21","21"]): ?>
                                                <?php echo e(trans('Certificat_trans.English')); ?>

                                                <?php elseif($certificat->lang == ["11","11"]): ?>
                                                <?php echo e(trans('Certificat_trans.Arabic')); ?>

                                                <?php else: ?>
                                                <?php echo e(trans('Certificat_trans.Arabic')); ?> - <?php echo e(trans('Certificat_trans.English')); ?>

                                                <?php endif; ?>
                                            </td>
                                        </tr>
                                       
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.certificat_type')); ?></td>
                                            <td>
                                                <?php if($certificat->certificat_type == ["1"]): ?>
                                                <?php echo e(trans('Certificat_trans.Details')); ?>

                                                <?php elseif($certificat->certificat_type == ["2"]): ?>
                                                <?php echo e(trans('Certificat_trans.Regular')); ?>

                                                <?php else: ?>
                                                        <?php echo e(trans('Certificat_trans.Regular')); ?> - <?php echo e(trans('Certificat_trans.Details')); ?>

                                                <?php endif; ?>
                                            </td>
                                        </tr>
                                       
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.First_name')); ?></td>
                                            <?php if(isset($certificat->first_name[0])): ?>
                                            <td colspan="2"><?php echo e($certificat->first_name[0]); ?> </td>
                                            <?php endif; ?>
                                            <?php if(isset($certificat->first_name[1])): ?>
                                            <td colspan="2"><?php echo e($certificat->first_name[1]); ?> </td>
                                            <?php endif; ?>
                                        </tr>
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.Second_name')); ?></td>
                                            <?php if(isset($certificat->second_name[0])): ?>
                                            <td colspan="2"><?php echo e($certificat->second_name[0]); ?></td>
                                            <?php endif; ?>
                                            <?php if(isset($certificat->second_name[1])): ?>
                                            <td colspan="2"><?php echo e($certificat->second_name[1]); ?></td>
                                            <?php endif; ?>
                                        </tr>
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.Third_name')); ?></td>
                                            <?php if(isset($certificat->midell_name[0])): ?>
                                            <td colspan="2"><?php echo e($certificat->midell_name[0]); ?></td>
                                            <?php endif; ?>
                                            <?php if(isset($certificat->midell_name[1])): ?>
                                            <td colspan="2"><?php echo e($certificat->midell_name[1]); ?></td>
                                            <?php endif; ?>
                                        </tr>
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.Last_name')); ?></td>
                                            <?php if(isset($certificat->last_name[0])): ?>
                                            <td colspan="2"><?php echo e($certificat->last_name[0]); ?></td>
                                            <?php endif; ?>
                                            <?php if(isset($certificat->last_name[1])): ?>
                                            <td colspan="2"><?php echo e($certificat->last_name[1]); ?></td>
                                            <?php endif; ?>
                                        </tr>
                                        <tr>
                                            <td scope="row"><?php echo e(trans('Depts_trans.Name_Dept')); ?></td>
                                            <td><?php echo e($certificat->dept->name); ?></td>
                                        </tr>

                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.certificat_number')); ?></td>
                                            <td><?php echo e($certificat->certificat_number); ?></td>
                                        </tr>

                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.amount')); ?></td>
                                            <td><?php echo e($certificat->amount); ?></td>
                                        </tr>

                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.notification_number')); ?></td>
                                            <td><?php echo e($certificat->notification_number); ?></td>
                                        </tr>

                                        <tr>
                                            <td scope="row"><?php echo e(trans('Certificat_trans.date')); ?></td>
                                            <td><?php echo e(date('d-m-Y', strtotime($certificat->created_at))); ?></td>
                                        </tr>
                                       
                                      <tr>
                                        
                                        <th><?php echo e(trans('Certificat_trans.r_status')); ?></th>
                                        <td>
                                            <?php if($certificat->r_status == '0'): ?>
                                                <span class="label text-info">
                                                     <?php echo e(trans('Certificat_trans.Process')); ?>

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

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

                                                </span>
                                            <?php endif; ?>
                                        </td>
                                      </tr>

                                      <tr>
                                       
                                        <?php if(isset($certificat->r_note)): ?>
                                        <tr>
                                            <th scope="row"><?php echo e(trans('Certificat_trans.note')); ?></th>
                                            <td> <?php echo e($certificat->r_note); ?> </td>
                                        </tr>
                                        <?php endif; ?>
                                      </tr>

                                      <tr>
                                        
                                        <th><?php echo e(trans('Certificat_trans.f_status')); ?></th>
                                        <td>
                                            <?php if($certificat->f_status == '0'): ?>
                                                <span class="label text-info">
                                                     <?php echo e(trans('Certificat_trans.Process')); ?>

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

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

                                                </span>
                                            <?php endif; ?>
                                        </td>
                                      </tr>
                                      
                                      <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('isAdmin')): ?>
                                      <?php if(isset($certificat->acdimec_user)): ?>
                                      <tr>
                                          <td scope="row"><?php echo e(trans('main_trans.acdimec_user')); ?></td>
                                          <td><?php echo e($certificat->acdimec_user); ?> </td>
                                      </tr>
                                      <?php endif; ?>
                                      <?php if(isset($certificat->bank_user)): ?>
                                      <tr>
                                          <td scope="row"><?php echo e(trans('main_trans.bank_user')); ?></td>
                                          <td><?php echo e($certificat->bank_user); ?> </td>
                                      </tr>
                                      <?php endif; ?>
                                      <?php endif; ?>
                                     
                                    </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">
                                        <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>
                                                    <?php echo e(trans('Certificat_trans.personal_image')); ?>

                                                    <img height="400" width="400"
                                                        src="<?php echo e(asset('images/personalImage/' . $certificat->personal_image)); ?>">
                                                </td>
                                                <td>
                                                    <?php echo e(trans('Certificat_trans.bank')); ?>

                                                    <img height="400" width="400" src="<?php echo e(asset('images/bank/' . $certificat->bank)); ?>">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <?php echo e(trans('Certificat_trans.ssn')); ?>

                                                    <img height="400" width="400" src="<?php echo e(asset('images/ssn/' . $certificat->ssn)); ?>">
                                                </td>
                                                <td>
                                                    <img height="400" width="400"
                                                        src="<?php echo e(asset('images/schoolCertificat/' . $certificat->school_certificat)); ?>">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    </div>
                                  
                                </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' => 'CertificatProcessResult', 'autocomplete' => 'off' ]); ?>   
                                        <?php echo csrf_field(); ?>
                                       <input type="hidden" name="id" value="<?php echo e($certificat->id); ?>">
                                       
                                        <div class="col-lg-3 mg-t-20 mg-lg-t-0">
                                            <label class="rdiobox"><input name="rdio" value="1"
                                                    type="radio"><span> <?php echo e(trans('Certificat_trans.accept')); ?>

                                                </span></label>
                                        </div>
                                        <div class="col-lg-3 mg-t-20 mg-lg-t-0">
                                            <label class="rdiobox"><input name="rdio" value="2"
                                                    type="radio"><span> <?php echo e(trans('Certificat_trans.reject')); ?>

                                                </span></label>
                                        </div>
                                        
                                        <div class="col-lg-6">
                                            <label for="exampleFormControlTextarea1"><?php echo e(trans('Certificat_trans.note')); ?></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; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('المالية')): ?>
                            <div class="tab-pane fade" id="profile-04" role="tabpanel" aria-labelledby="profile-03-tab">
                                <div class="card card-statistics">
                                    <div class="card-body">
                                        <?php echo Form::open(['url' => 'CertificatProcessPay', 'autocomplete' => 'off' ]); ?>   
                                        <?php echo csrf_field(); ?>
                                       <input type="hidden" name="id" value="<?php echo e($certificat->id); ?>">
                                       
                                        <div class="col-lg-3 mg-t-20 mg-lg-t-0">
                                            <label class="rdiobox"><input name="rdio" value="1"
                                                    type="radio"><span> <?php echo e(trans('Certificat_trans.accept')); ?>

                                                </span></label>
                                        </div>
                                        <div class="col-lg-3 mg-t-20 mg-lg-t-0">
                                            <label class="rdiobox"><input name="rdio" value="2"
                                                    type="radio"><span> <?php echo e(trans('Certificat_trans.reject')); ?>

                                                </span></label>
                                        </div>
                                        
                                        <div class="col-lg-6">
                                            <label for="exampleFormControlTextarea1"><?php echo e(trans('Certificat_trans.bank_note')); ?></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; ?>
                            
                             <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('التعليق')): ?>
                            
                            <div class="tab-pane fade" id="profile-05" role="tabpanel" aria-labelledby="profile-03-tab">
                                <div class="card card-statistics">
                                    <div class="card-body">
                                       
                                        <?php echo Form::open(['url' => 'CommentCertificat', 'autocomplete' => 'off' ]); ?>   
                                        <?php echo csrf_field(); ?>
                                       <input type="hidden" name="id" value="<?php echo e($certificat->id); ?>">
                                       
                                        <div class="col-lg-6">
                                            <label for="exampleFormControlTextarea1"><?php echo e(trans('Certificat_trans.comments')); ?></label>
                                            <textarea name="comments" 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(); ?>
    <?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/Certificat/show.blade.php ENDPATH**/ ?>