<?php $__env->startSection('content'); ?> <div class="row"> <div class="col-xs-12"> <?php echo Breadcrumb::withLinks($breadcrumbs); ?> </div> </div> <div class="row"> <div class="col-xs-12"> <div role="tabpanel"> <?php echo Navigation::links($tabs)->withAttributes(['role' => 'tablist']); ?> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="<?php echo $tab; ?>"> <div class="row"> <div class="col-xs-12"> <div class="well"> <?php echo Form::open(['id' => 'search', 'route' => 'admin.payment.index', 'method' => 'POST', 'secure' => true]); ?> <div class="row"> <div class="input-daterange"> <div class="col-xs-3"> <?php echo ControlGroup::generate( Form::label('from', trans('admin.fields.date-from').":"), InputGroup::withContents(Form::text('from', $from ? date('d.m.Y', strtotime(e($from))) : '')) ); ?> </div> <div class="col-xs-3"> <?php echo ControlGroup::generate( Form::label('to', trans('admin.fields.date-to').":"), InputGroup::withContents(Form::text('to', $to ? date('d.m.Y', strtotime(e($to))) : '')) ); ?> </div> </div> <div class="col-xs-5"> <div class="row"> <div class="col-xs-12"> <?php echo Form::label('status', trans('admin.fields.payment-status').":"); ?> </div> </div> <div class="row"> <?php if($tab == 'ecard' || $tab == 'epay'): ?> <?php foreach($statuses as $value): ?> <div class="col-xs-6"> <?php echo Form::checkbox('status[]', $value, in_array($value, $status), ['class' => 'inline']); ?> <?php echo trans('admin.statuses.' . $value); ?> </div> <?php endforeach; ?> <?php endif; ?> <?php foreach($types as $value): ?> <div class="col-xs-6"> <?php echo Form::checkbox('type[]', $value, in_array($value, $type), ['class' => 'inline']); ?> <?php echo trans('admin.labels.' . $value); ?> </div> <?php endforeach; ?> </div> </div> </div> <div class="row"> <div class="col-xs-8"> <?php echo Form::hidden('tab', $tab); ?> <?php echo Button::dark(trans('admin.buttons.search'))->prependIcon(Icon::search())->submit(); ?> <?php echo Button::danger(trans('admin.buttons.reset-filter'))->prependIcon(Icon::remove())->reset(); ?> </div> <div class="col-xs-4"> <?php echo Button::info(trans('admin.buttons.export'))->prependIcon(Icon::save())->submit()->withAttributes(['formaction' => route('admin.payment.export'), 'class' => 'pull-right']); ?> </div> </div> <?php echo Form::close(); ?> </div> </div> </div> <table class="table table-striped"> <thead> <tr> <th class="col-xs-2"><?php echo trans('admin.labels.order'); ?></th> <th class="col-xs-<?php echo $tab == 'other' ? 3 : 4; ?>"><?php echo trans('admin.labels.date'); ?></th> <?php if($tab == 'other'): ?> <th class="col-xs-3 text-center"><?php echo trans('admin.labels.type'); ?></th> <?php endif; ?> <th class="col-xs-<?php echo $tab == 'other' ? 2 : 3; ?> text-right"><?php echo trans('admin.labels.amount'); ?></th> <th class="col-xs-2 text-center"><?php echo trans('admin.labels.state'); ?></th> <?php if($tab == 'ecard'): ?> <th class="col-xs-1 text-center"><?php echo trans('admin.labels.show'); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $__empty_1 = true; foreach($payments[$tab] as $payment): $__empty_1 = false; ?> <?php echo $__env->make('admin.payment.' . $tab . '.row', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php endforeach; if ($__empty_1): ?> <tr> <td colspan="5" class="text-center"> <?php echo trans('admin.messages.empty-list-of-payments'); ?> </td> </tr> <?php endif; ?> </tbody> </table> <div class="row"> <div class="col-xs-12 text-center"> <?php echo $payments[$tab]->appends(['tab' => $tab, 'from' => $from, 'to' => $to, 'status' => $status])->links(); ?> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> $('form .input-daterange').datepicker({ format: "dd.mm.yyyy", weekStart: 1, language: "sk", keyboardNavigation: false, autoclose: true, todayHighlight: true }); $('form#search').on('reset', function (event) { $(this).find('input[name=from]').val(''); $(this).find('input[name=to]').val(''); $(this).find('input[name^=status]').prop('checked', true); $(this).submit(); }); <?php $__env->stopSection(); ?>