@include('components.theme.pages.header')
{{ Form::open(['route' => ['konselor.ticket.update', 'id' => $detail->id]]) }} @csrf
Detail Bimbingan & Konseling
@if($detail->is_status != 4) @endif
  • Nama Siswa: {{ $siswa }} (NIS: {{ $nis }})
  • Jenis Bimbingan & Konseling: @if($detail->is_priority == 1) Normal @elseif($detail->is_priority == 2) Sedang @else Parah @endif
  • Status Bimbingan & Konseling: @if($detail->is_status == 1) Menunggu Respon @elseif($detail->is_status == 2) Konselor telah membalas @elseif($detail->is_status == 3) {{ $siswa }} telah membalas @else Kasus ditutup @endif
  • Tanggal B.K dibuat: {{ date_formatting($detail->created_at, 'timeago') }}
  • Tanggal B.K diperbarui: {{ date_formatting($detail->updated_at, 'timeago') }}
@if(!empty($ticketResponse))
@foreach($ticketResponse as $record) @php $sender = \App\Models\User::find($record->user_id)->name @endphp @php $senderAvatar = substr($sender, 0, 1) @endphp
@if (\App\Models\User::find($record->user_id)->level == enum('isKonselor')) @php $level = "konselor"; @endphp @if(empty(\App\Models\User::where('id', $record->konselor_id)->first()->thumbnail))
{{ $senderAvatar }}
@else
@php $thumbnail = \App\Models\User::where('id', $record->konselor_id)->first()->thumbnail; @endphp Foto Profil
@endif @else @php $level = "siswa"; @endphp @if(\App\Models\User::where('id', $record->user_id)->first()->thumbnail === '')
{{ $senderAvatar }}
@else
@php $thumbnail = \App\Models\User::where('id', $record->user_id)->first()->thumbnail; @endphp Foto Profil
@endif @endif
{{ date_formatting($record->created_at, 'timeago') }}

{!! $record->message !!}

@endforeach
@else

Maaf! Pesan tidak ditemukan

Tidak ditemukan pesan pada ticket, Silahkan kirim pesan
@endif @if($detail->is_status != 4)
@else
Bimbingan & Konseling sudah ditutup/dinyatakan selesai!
@endif
{{ Form::close() }}
@push('scripts') @endpush @include('components.theme.pages.footer')