<?php // The $ticket variable is passed here from the get_ticket_edit_form() method ?>
<form id="em_ticket_update_form">
    <input type="hidden" id="em_edit_ticket_id" value="<?php echo esc_attr($ticket->id); ?>">
    <div class="form-group">
        <label><?php _e('Ticket Name', 'event-monster'); ?></label>
        <input type="text" name="em_edit_ticket_name" class="form-control" value="<?php echo esc_attr($ticket->name); ?>" required>
    </div>
    <div class="form-group">
        <label><?php _e('Description', 'event-monster'); ?></label>
        <textarea name="em_edit_ticket_desc" class="form-control"><?php echo esc_textarea($ticket->desc); ?></textarea>
    </div>
    <div class="form-group">
        <label><?php _e('Price', 'event-monster'); ?></label>
        <input type="number" name="em_edit_ticket_price" class="form-control" value="<?php echo esc_attr($ticket->price); ?>" step="0.01" required>
    </div>
    <div class="form-group">
        <label><?php _e('Status', 'event-monster'); ?></label>
        <select name="em_edit_ticket_status" class="form-control">
            <option value="available" <?php selected($ticket->status, 'available'); ?>><?php _e('Available', 'event-monster'); ?></option>
            <option value="unavailable" <?php selected($ticket->status, 'unavailable'); ?>><?php _e('Unavailable', 'event-monster'); ?></option>
        </select>
    </div>
</form>