<?php

use App\Models\ActivityLogModel;
use App\Models\AttachmentModel;
use App\Models\TeknisiModel;
use App\Models\TicketCommentModel;
use App\Models\TicketModel;
use App\Models\UserModel;

/**
 * @var TicketModel $ticket
 * @var array $availableStatus
 * @var TeknisiModel $daftarTeknisi
 * @var AttachmentModel $attachments
 * @var ActivityLogModel $timelines
 * @var array $slaResponse
 * @var array $slaResolution
 * @var UserModel $requester
 * @var UserModel $teknisi
 * @var TicketCommentModel  $comments
 */
?>

<div class="container">
  <?php

  $this->partial('ticket/detail/header', [
    'ticket' => $ticket,
    'availableStatus' => $availableStatus,
    'daftarTeknisi' => $daftarTeknisi
  ]);

  $this->partial('ticket/detail/content', [
    'ticket' => $ticket,
    'attachments' => $attachments,
    'timelines' => $timelines,
    'comments' => $comments
  ]);

  $this->partial('ticket/detail/sidebar', [
    'slaResponse' => $slaResponse,
    'slaResolution' => $slaResolution,
    'ticket' => $ticket,
    'requester' => $requester,
    'teknisi' => $teknisi
  ]);

  ?>
</div>