<div id="football-template">
  <div class="template-title">
    <div class="initial-block-container">
      <div class="initial-block"></div>
      <p>Official use only</p>
    </div>
    <h1>Big South Youth Football <?php echo date('Y'); ?></h1>
  </div>
  <div id="template-info-wrapper">
    <div class="template-row">
      <div class="template-column name">
        <div class="column-label">Player's Name</div>
        <div class="column-value"><?php echo $safe_data['full_name'] ?? '' ?></div>
      </div>
    </div>
    <div class="template-row">
      <div class="template-column birth-date">
        <div class="column-label">Birth Date</div>
        <div class="column-value">
          <?php
          if (!empty($safe_data['dob'])) {
            $date = DateTime::createFromFormat('Y-m-d', $safe_data['dob']);
            echo $date ? $date->format('m-d-Y') : esc_html($safe_data['dob']);
          }
          ?>
        </div>
      </div>
      <div class="template-column">
        <div class="column-label">Weight</div>
        <div class="column-value"><?php echo $safe_data['weight'] ?? '' ?></div>
      </div>
    </div>
    <div class="template-row fb-team-row">
      <div class="template-column team-name">
        <div class="column-label">Team Name</div>
        <div class="column-value"><?php echo $safe_data['team_name'] ?? '' ?></div>
      </div>
      
    </div>
    <div class="template-row">
      <div class="template-column age-group">
        <div class="column-label">Age Group</div>
        <div class="column-value"><?php echo $safe_data['age_group'] ?? '' ?></div>
      </div>
      <div class="template-column school-name">
        <div class="column-label">School Name</div>
        <div class="column-value"><?php echo $safe_data['school_name'] ?? '' ?></div>
      </div>
    </div>
  </div>
</div>