__( 'Setup Basics', 'baithak' ), 'items' => [ [ 'label' => __( 'Full Site Editing', 'baithak' ), 'done' => true ], [ 'label' => __( 'Colors customization', 'baithak' ), 'done' => true ], [ 'label' => __( 'Typography', 'baithak' ), 'done' => true ], ], ], [ 'label' => __( 'Content & Pages', 'baithak' ), 'items' => [ [ 'label' => __( 'Pages created', 'baithak' ), 'done' => true ], [ 'label' => __( 'Blog page setup', 'baithak' ), 'done' => true ], [ 'label' => __( 'Header & Footer', 'baithak' ), 'done' => true ], ], ], [ 'label' => __( 'Design & Polish', 'baithak' ), 'premium' => true, 'items' => [ [ 'label' => __( 'Additional blocks layout', 'baithak' ) ], [ 'label' => __( 'Dark / Light mode', 'baithak' ) ], [ 'label' => __( 'Popular posts widget', 'baithak' ) ], ], ], [ 'label' => __( 'Growth & Monetization', 'baithak' ), 'premium' => true, 'items' => [ [ 'label' => __( 'Advertisement blocks', 'baithak' ) ], [ 'label' => __( 'Social sharing', 'baithak' ) ], [ 'label' => __( 'Like & reactions system', 'baithak' ) ], ], ], ]; $total = $done = 0; foreach ( $sections as $section ) { if ( ! empty( $section['premium'] ) ) { continue; } foreach ( $section['items'] as $item ) { $total++; if ( ! empty( $item['done'] ) ) { $done++; } } } $progress = $total ? round( ( $done / $total ) * 100 ) : 0; ?>