<ion-header mode="ios" class="ion-no-border">
  <ion-toolbar>
    <ion-buttons slot="start" (click)="onBack()">
      <ion-button>
        <ion-icon name="arrow-back-outline"></ion-icon>
      </ion-button>
    </ion-buttons>
    <ion-title>In Review</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
    <div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/taskbanners/'+item_banner+')'">
    <div class="ion-padding">
<!--      <ion-icon slot="start" name="arrow-back" class="back" (click)="onBack()"></ion-icon>-->
    </div>
  </div>

  <div class="ion-padding">
    <div class="boxed_contents">
      <div class="flex">
<!--        <ion-label class="bold_text_green">In Review</ion-label>-->
<!--        <ion-icon slot="end" name="bookmark-outline" color="primary"></ion-icon>-->
      </div>
      <div class="flex">
        <ion-label class="bold_text">{{jobData.title}}</ion-label>
      </div>

      <div class="row">
        <ion-label class="bg_text">{{jobData.contract}}</ion-label>
        <div class="rate">
          <!--        <ion-icon name="star-half-outline" color="warning"></ion-icon>-->
          <ion-label class="review"> Due date : {{jobData.delivery_date |date}} </ion-label>
        </div>
      </div>

      <ion-label class="color_text">Price: {{jobData.price*0.01| number : '1.2-2'}} {{jobData.currency}}</ion-label>

      <div class="items">
        <div class="stud">
          <ion-icon slot="start" name="time" color="primary"></ion-icon>
          <ion-label>Timeline: {{jobData.timeline_days}} days</ion-label>
        </div>
      </div>

      <ion-card>
        <ion-card-content>
          This job is in review, you can accept or reject completion.
        </ion-card-content>
          <ion-grid>
              <ion-row>
                  <ion-col> <ion-button color="danger" expand="block" fill="outline" (click)="rejectCompletetion()">Reject</ion-button></ion-col>
                  <ion-col></ion-col>
                  <ion-col><ion-button color="secondary" expand="block" fill="outline" (click)="acceptCompletetion()">Accept</ion-button></ion-col>
              </ion-row>
          </ion-grid>
      </ion-card>


      <ion-segment [(ngModel)]="tabs">
        <ion-segment-button value="activities">
          <ion-label>Activities</ion-label>
        </ion-segment-button>
        <ion-segment-button value="message">
          <ion-label>Send Message</ion-label>
        </ion-segment-button>
      </ion-segment>

      <div *ngIf="tabs =='activities'" class="lesson">
            <app-taskactivities [jobData]="jobData"></app-taskactivities>
      </div>

      <div *ngIf="tabs =='message'" class="lesson">

        <ion-card>
          <ion-card-header>
            <ion-card-subtitle>Send Message to task owner</ion-card-subtitle>
          </ion-card-header>

          <ion-card-content>
            <ion-textarea label="Your Message to Job Owner" placeholder="Type something here"  [(ngModel)]='yourmessage' ></ion-textarea>
          </ion-card-content>

          <ion-button color="secondary" expand="block" (click)="sendJobmarketMessage()">Send Message</ion-button>
          <ion-label class="description">{{interest_msg_status}}
          </ion-label>
        </ion-card>

      </div>
    </div>



  </div>
</ion-content>

<ion-footer>
  <ion-toolbar>
    <div class="button" (click)="onBack()">
      <ion-label class="text">Return</ion-label>
    </div>
  </ion-toolbar>
</ion-footer>

