<?php $__env->startSection('title','تفاصيل '.$bank->name); ?>
<?php $__env->startSection('content'); ?>
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            تفاصيل - <?php echo e($bank->name); ?>

        </h1>
    </section>

    <!-- Main content -->
    <section class="content">
        <?php echo $__env->make('layouts.partial.filter', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                
                <!-- /.box-header -->
                    <div class="box-body">
                        <table id="dataList" class="table table-bordered table-striped dataTableTT">
                            <thead>
                            <tr>
                                <th>#<span class="hide boxTiT"> الرصيد النهائى للخزنة : <?php echo e(currency($bank->balance,$bank->currency,$bank->currency, $format = true)); ?> </span></th>
                                <th>التاريخ</th>
                                <td>المستخدم</td>
                                <th>البيان</th>
                                <th>نوع العملية</th>
                                <th>الرصيد قبل</th>
                                <th>المبلغ</th>
                                <th>الرصيد بعد</th>
                                <th></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trans): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td class="text-center"><?php echo e($loop->iteration); ?></td>
                                    <td class="text-center"><?php echo e($trans->op_date); ?></td>
                                    <td><?php echo e(optional($trans->creator)->name); ?></td>
                                    <td class="text-center"><?php echo e($trans->note); ?></td>
                                    <td class="text-center"><?php echo e($trans->type==1?'سحب':'إيداع'); ?></td>
                                    <td class="text-center"><?php echo e($trans->total); ?></td>
                                    <td class="text-center"><?php echo e($trans->value); ?></td>
                                    <td class="text-center"><?php echo e($trans->due); ?></td>
                                    <td>
                                        <a title="طباعه" href="<?php echo e(route('banktransaction',$trans->id)); ?>" class="btn btn-info btn-xs">
                                            <i class="fa fa-print" aria-hidden="true"></i>
                                            </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>