['label' => 'Category', 'icon' => 'fa-list'], 'account' => ['label' => 'Account', 'icon' => 'fa-piggy-bank'], 'client' => ['label' => 'Client', 'icon' => 'fa-user'], 'method' => ['label' => 'Payment Method', 'icon' => 'fa-credit-card'], 'billable' => ['label' => 'Billable', 'icon' => 'fa-file-invoice-dollar'], ]; if (!isset($fields[$field])) { echo json_encode(['error' => 'Pick what to set from the Bulk Action menu.']); exit; } if (!$count) { echo json_encode(['error' => 'Tick the expenses to change first.']); exit; } ob_start(); ?>