'All events']; foreach ($events as $x) $evOpts[$x['id']] = $x['title']; $stOpts = ['' => 'Any status']; foreach (array_merge(feature('approvals') ? ['awaiting_approval'] : [], ['pending_payment', 'paid'], feature('approvals') ? ['rejected'] : [], ['cancelled', 'expired', 'refunded']) as $gc_s) $stOpts[$gc_s] = status_label($gc_s); $typeOpts = ['' => 'Any type', 'online' => 'Booked online', 'comp' => 'Guest list', 'door' => 'Sold at the door', 'imported' => 'Imported']; $qs = http_build_query(array_filter(['event' => $f['event'] ?: null, 'status' => $f['status'], 'type' => $f['type'], 'q' => $f['q'], 'from' => $f['from'], 'to' => $f['to']])); ?>

Bookings

Excel CSV New booking
['All', array_sum(array_map('intval', $byStatus))]]; foreach (array_keys($stOpts) as $gc_s) if ($gc_s !== '' && (!empty($byStatus[$gc_s]) || in_array($gc_s, ['paid', 'pending_payment'], true) || ($gc_s === 'awaiting_approval' && feature('approvals')))) $chips[$gc_s] = [status_label($gc_s), (int)($byStatus[$gc_s] ?? 0)]; echo wp_kses( filter_chips('status', $f['status'], $chips, array_filter(['event' => $f['event'] ?: null, 'type' => $f['type'], 'q' => $f['q'], 'from' => $f['from'], 'to' => $f['to']]), 'Booking status'), allowed_html() ); ?>
'Reference, name or email']), allowed_html() ); ?> $evOpts]), allowed_html() ); ?> $typeOpts]), allowed_html() ); ?> Clear
No bookings found.
ReferenceBuyerEventTicketsTotalPaymentStatusCreated
0 ? esc_html(money((int)$r['total'])) : 'Free'; ?>
$f['event'] ?: null, 'status' => $f['status'], 'q' => $f['q'], 'from' => $f['from'], 'to' => $f['to']])), allowed_html() ); ?>