
<?php $__env->startSection('content'); ?>
<?php Fun::lang()?>

<div class="page">
<div class=container-fluid>
    <div class="top-content">
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                <div class="title-add">
                    <div class="pull-left">
                        <h3><?php echo e(__('administrator.payment_type')); ?></h3>
                    </div>
                    <div class="pull-right">
                       <a href="<?php echo e(route('payment-type.create')); ?>" class=" button_info"><span class="fa fa-plus"></span> <?php echo e(__('administrator.add_new')); ?></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
     <div class="wrapper-table">
        <table id="data_table" width="100%" class="table table-striped table-hover ">
             <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('administrator.name')); ?></th>
                    <th><?php echo e(__('administrator.note')); ?></th>
                    <th><?php echo e(__('administrator.created_at')); ?></th>
                    <th><?php echo e(__('administrator.action')); ?></th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $payment_type; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($key+1); ?></td>
                    <td><?php echo e($value->name); ?></td>
                    <td><?php echo e(str_limit($value->note, $limit = 20, $end = '...')); ?></td>
                    <td><?php echo e(date('d-m-Y', strtotime($value->created_at))); ?></td>
                    <td>
                        <a href="<?php echo e(route('payment-type.edit',$value->id)); ?>" class="button_info"><?php echo e(__('administrator.edit')); ?></a>
                        
                        
                    </td>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
</div>

<div class="modal fade bs-modal-lg" id="form_delete" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-dm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h3 class="modal-title">Are you sure?</h3>
            </div>
            <br/>
            <form role="form" method="delete" id="delete">
                <?php echo e(csrf_field()); ?>

                <div class="row">
                    <div class="col-md-12">
                        <div class="col-md-10">
                            <h4>Are you want to delete?</h4>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" data-dismiss="modal" class="button_danger"><i class="fa fa-close"></i> No</button>
                    <button type="button" class="button_primary deleteRecord" data-toggle="modal"><i class="fa fa-save"></i> OK</button>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="modal fade bs-modal-lg" id="form_show" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-dm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h3 class="modal-title">Sub Unit</h3>
            </div>
            <br/>
            <table id="datatable" width="100%" class="table table-striped table-hover ">
             <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('administrator.unit')); ?></th>
                    <th><?php echo e(__('administrator.created_at')); ?></th>
                    <th><?php echo e(__('administrator.action')); ?></th>
                </tr>
            </thead>
            <tbody id="modal_tbody">
               
            </tbody>
        </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>



<?php $__env->startSection('script'); ?>

    <script type="text/javascript">
         $('#data_table').DataTable();
    </script>
<?php $__env->stopSection(); ?>

    


<?php echo $__env->make(branchMenu(), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/payment-type/index.blade.php ENDPATH**/ ?>