'.($discounts_p ?? '').'
'.$success_msg.'
| '.($discounts_id ?? '#').' | '.($discounts_code ?? 'Code').' | '.($discounts_active ?? 'Active').' | '.($discounts_category ?? 'Categories').' | '.($discounts_product ?? 'Products').' | '.($discounts_type ?? 'Type').' | '.($discounts_value ?? 'Value').' | '.($discounts_start_date ?? 'Start Date').' | '.($discounts_end_date ?? 'End Date').' |
| '.($message_no_discounts ?? 'There are no discounts').' | ||||||||
| '.$discount['id'].' | '.$discount['discount_code'].' | '.(($current_date >= strtotime($discount['start_date']) && $current_date <= strtotime($discount['end_date'])) ? $general_yes : $general_no).' | '.($discount['category_names'] ? str_replace(',', ', ', $discount['category_names']) : $general_all ?? 'all').' | '.($discount['product_names'] ? str_replace(',', ', ', $discount['product_names']) : $general_all ?? 'all').' | '.$discount['discount_type'].' | '.$discount['discount_value'].' | '.date('Y-m-d h:ia', strtotime($discount['start_date'])).' | '.date('Y-m-d h:ia', strtotime($discount['end_date'])).' |