Current File : /home/itiffy/public_html/storage/framework/views/6b6bacf095b32d31b5ccb357a2753f446d903963.php
<?php $__env->startSection('content'); ?>

<?php if($transactions->count()): ?>
    <div class="portlet box green">
        <div class="portlet-title">
            <div class="caption"><?php echo e(trans('quickadmin::templates.templates-view_index-list')); ?></div>
        </div>
        <div class="portlet-body">
            <table class="table table-striped table-hover table-responsive datatable1" id="datatable1">
                <thead>
                    <tr>
                        <th>Transaction Id</th>
                        <th>Order Number</th>
                        <th>Price</th>
                        <th>Name</th>
                        <th>Address</th>
                        
                        <th>Email</th>
                        <th>Phone Number</th>
                        <th>Hires For</th>
                        <th>Duration</th>
                        
                        <th>Created At</th>
                    </tr>
                </thead>

                <tbody>
                    <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($row->transaction_id); ?></td>
                            <td><?php echo e($row->order_number); ?></td>
                            <td><?php echo e($row->price); ?> <?php echo e($row->currency_code); ?> <?php if($row->payment_type==1): ?><?php echo e('(Half Payment)'); ?><?php endif; ?></td>
                            <td><?php echo e($row->name); ?></td>
                            <td>Address : <?php echo e($row->address); ?>

                                City : <?php echo e($row->city); ?>

                                State : <?php echo e($row->state); ?>

                                Country : <?php echo e($cuntry_array[$row->country]); ?>

                                Zip Code : <?php echo e($row->zip_code); ?>

                            </td>
                            <td><?php echo e($row->email); ?></td>
                            <td><?php echo e($row->phone_number); ?></td>
                            <td><?php echo e($row->hires_for); ?></td>
                            <td><?php if($row->hires_hour_or_month==0): ?><?php echo e('Fixed Budget'); ?><?php else: ?> <?php echo e($row->how_many_hour_or_month); ?> <?php if($row->hires_hour_or_month==1): ?><?php echo e('hour(s)'); ?><?php elseif($row->hires_hour_or_month==2): ?><?php echo e('month(s)'); ?><?php else: ?><?php echo e('year(s)'); ?><?php endif; ?> <?php endif; ?></td>
                            
                            <td><?php echo e($row->created_at); ?></td>
                            
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
            
            <?php echo Form::open(['route' => config('quickadmin.route').'.contactformdb.massDelete', 'method' => 'post', 'id' => 'massDelete']); ?>

                <input type="hidden" id="send" name="toDelete">
            <?php echo Form::close(); ?>

        </div>
	</div>
<?php else: ?>
    <?php echo e(trans('quickadmin::templates.templates-view_index-no_entries_found')); ?>

<?php endif; ?>

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

<?php $__env->startSection('javascript'); ?>
    <script>
        $(document).ready(function () {
            $('#delete').click(function () {
                if (window.confirm('<?php echo e(trans('quickadmin::templates.templates-view_index-are_you_sure')); ?>')) {
                    var send = $('#send');
                    var mass = $('.mass').is(":checked");
                    if (mass == true) {
                        send.val('mass');
                    } else {
                        var toDelete = [];
                        $('.single').each(function () {
                            if ($(this).is(":checked")) {
                                toDelete.push($(this).data('id'));
                            }
                        });
                        send.val(JSON.stringify(toDelete));
                    }
                    $('#massDelete').submit();
                }
            });
            $('#datatable1').dataTable({
                 "order": [[ 9, "desc" ]],
                 });
        });
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>