@extends('LaravelVueAdmin.layouts.app') @section("contentheader_title", "Tiket : ".$ticket->$view_col) @section("section", "Tiket Pekerjaan") @section("section_url", url(config('LaravelVueAdmin.adminRoute') . '/tickets')) @section("sub_section", "Detail Tiket Pekerjaan") @section("htmlheader_title", "Detail Tiket Pekerjaan") @section("headerElems") @endsection @section('mini')
@php $cc =""; if(json_decode($module->row->cc) != null) { foreach(json_decode($module->row->cc) as $key => $usr){ $cc .= ''.\App\User::find($usr)->name.' '; } } @endphp @php echo \App\Helpers\CEOFormMaker::display($module, 'ticket_code', 'form-group'); echo '
'; echo '
'; echo ''; echo '
'; echo ''.\App\User::find($module->row->pic)->name.' '; echo '
'; echo '
'; echo '
'; if(!empty($cc)){ echo '
'; echo '
'; echo ''; echo '
'; echo $cc; echo '
'; echo '
'; echo '
'; } echo '
'; echo nl2br(\App\Helpers\CEOFormMaker::display($module, 'desc', 'form-group')); echo '
'; echo '
'; echo \App\Helpers\CEOFormMaker::display($module, 'doc', 'form-group'); echo '
'; echo '
'; if(Auth::user()->id == $module->row->created_by) { echo ''; } else { echo '
'.date_format(date_create($module->row->deadline),'d F Y').'
'; } echo '
'; echo '
'; echo '
'.$creted_by->name.'
'; echo '
'; echo '
'; echo '
'.date_format(date_create($module->row->created_at),'d F Y').'
'; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; echo '
'.$status->name.'
'; echo '
'; echo '
'; echo '
'; echo '
'; echo '
Dibaca Oleh : '.$read.'
'; echo '
'; @endphp
@php $tanggal=NULL; $deadline=TRUE; @endphp @foreach($timeline as $type => $items) @foreach($items as $item) @if(!empty($asc_item)) @if(date('Ymd') > date_format(date_create($ticket->deadline),'Ymd') && in_array($item->status,[2,37]) && $asc_item->created_at == $item->created_at)
{{\Carbon\Carbon::createFromFormat('Y-m-d', $ticket->deadline)->format('l, d M Y')}}
@endif @endif @unless (isset($tanggal)||$tanggal!==NULL)
@php $tanggal=date('d M Y', $item->updated_at->timestamp); $hari=date('l',$item->updated_at->timestamp); @endphp {{$hari}}, {{$tanggal}}
@endunless @if ($tanggal !== date('d M Y', $item->updated_at->timestamp)) @php $tanggal=date('d M Y', $item->updated_at->timestamp) @endphp
{{date('l', $item->updated_at->timestamp)}}, {{$tanggal}}
@endif
@php $user = \App\User::find($item->created_by); @endphp @if(!empty($user->username)) User Image @else User Image @endif
@if($user->hasRole('SUPER_ADMIN')) Reply dari Administrator: @else Reply dari {{$item->name}}: @endif
{{date('d M Y H:i:s',strtotime($item->created_at))}}
@php $ticket_d = \App\Models\Ticket_d::find($item->id); $detail = Module::get('Ticket_ds'); $detail->row = $ticket_d; @endphp @php $files = \App\Models\Upload::whereIn('id',json_decode($ticket_d->doc))->whereNull('deleted_at')->get(); @endphp
{!! nl2br($item->desc) !!} @php $arr = array(5,6,7,36) @endphp @php $status = \App\Models\Status_type::find($item->status); @endphp @unless($item->doc=="[]") @if(!empty($files))
@endunless @endif
@if (!empty($status) && in_array($status->id, $arr)) @endif
@endforeach @endforeach @if ($tanggal !== date('d M Y', $ticket->created_at->timestamp))
{{date('l', $ticket->created_at->timestamp)}}, {{date('d M Y', $ticket->created_at->timestamp)}}
@endif
@php $user = \App\User::find($creator->id); @endphp @if(!empty($user->username)) User Image @else User Image @endif
{{ $creator->name }} membuat tiket baru
{{date('d M Y h:i:s',strtotime($ticket->created_at))}}

Tiket ditujukan kepada {{$pic->name}}

@php $detail = Module::get('Ticket_ds'); @endphp @lv_access("Tickets", "create") @endlv_access @lv_access("Ticket_ds", "create") @endlv_access @lv_access("Ticket_ds", "edit") @endlv_access @endsection @push('scripts') @endpush