<div class="assessment-wrapper row">

    <div class="col-12" style="padding: 0;">
        <div class="assessment-header">
            <div class="header-logo" *ngIf="!isMobileView">
                <img src="assets/my-career-web/images/MATCHD_LOGO.jpg" alt="">
            </div>

            <div class="header-actions">
                <span class="auto-saved">Auto saved 1 min ago</span>

                <button pButton label="Save & exit" (click)="exit()" class="ui-button-info"></button>
            </div>
        </div>
        <p-progressBar [value]="20"></p-progressBar>

        <div class="assessment-body container">

            <div class="assessment-body-header">
                <div class="assessment-heading">Career History</div>

                <span class="assessment-estimation"> <i class="fa fa-clock-o"></i> <strong>Estimated time to complete</strong>: 20 mins</span>
            </div>

            <div class="assessment-body-description">
                Fill out each of these sections to complete your profile and start job hunting.
            </div>


            <div class="assessment-body-tabs mc-card career-builder">
                <p-tabView (onChange)="tabChanged($event)">
                    <p-tabPanel header="1{{isMobileView ? '' : '. Templates'}}" [selected]="activeTab === 'templates'">
                        <app-templates></app-templates>
                    </p-tabPanel>
                    <p-tabPanel header="2{{isMobileView ? '' : '. Personal Data'}}" [selected]="activeTab === 'personal-data'">
                        <app-personal-details [asChildComponent]="true" (detailsSaved)="tabChanged({index: 1})">
                        </app-personal-details>
                    </p-tabPanel>
                    <p-tabPanel header="3{{isMobileView ? '' : '. Work History'}}" [selected]="activeTab === 'work-history'">
                        <app-work-history (workSaved)="tabChanged({index: 2})">
                        </app-work-history>
                    </p-tabPanel>
                    <p-tabPanel header="4{{isMobileView ? '' : '. Education'}}" [selected]="activeTab === 'education'">
                        <app-education (educationSaved)="tabChanged({index: 3})"></app-education>
                    </p-tabPanel>
                    <p-tabPanel header="5{{isMobileView ? '' : '. Skills'}}" [selected]="activeTab === 'skills'">
                        <app-skills (skillsSaved)="tabChanged({index: 4})"></app-skills>
                    </p-tabPanel>
                    <p-tabPanel header="6{{isMobileView ? '' : '. References'}}" [selected]="activeTab === 'references'">
                        <app-references (refereeSaved)="tabChanged({index: 5})"></app-references>
                    </p-tabPanel>
                    <p-tabPanel header="7{{isMobileView ? '' : '. Publish'}}" [selected]="activeTab === 'publish'">
                        <app-publish></app-publish>
                    </p-tabPanel>
                </p-tabView>
            </div>
        </div>
    </div>

</div>
