['label' => 'Driver', 'icon' => 'fa-user'], 'client' => ['label' => 'Client', 'icon' => 'fa-building'], 'vehicle' => ['label' => 'Vehicle', 'icon' => 'fa-car-side'], '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 trips to change first.']); exit; } ob_start(); ?>