| @if($type->approver_id!='')
{!! $type->approver->detail->users_detail_name !!}
@else
-
@endif
|
@if(in_array($mode,[2,3]))
@if($type->is_warga!=1)
{!! $type->permohonan_bw_nama.(($type->permohonan_bw_idno!='') ? ' ('.$type->permohonan_bw_idno.')' : '').' (Bukan Warga)' !!}
@else
{!! $type->pemohon->detail->users_detail_name.' ('.$type->pemohon->detail->users_detail_staffno.')' !!}
@endif
|
@endif
{!! date( 'd/m/Y H:i', strtotime($type->created_at)).' ('.$type->permohonan_no.')' !!}
{!! ($type->approved_date!='') ? ' (Diluluskan Pada: '.date( 'd/m/Y H:i', strtotime($type->approved_date)).')' : '' !!}
|
{!! (($type->permohonan_mula_tugas)!='') ? date( 'd/m/Y', strtotime($type->permohonan_mula_tugas)) : '' !!}
|
{!! $type->permohonan_tujuan !!} |
{!! $type->permohonan_tempat_tugasan !!} |
{!! ($type->allocation_id!='') ? $type->allocation->allocation_desc : '' !!} |
{!! $type->createdby->detail->users_detail_name.' ('.$type->createdby->detail->users_detail_staffno.')' !!}
@if($type->is_warga == 1)
{!! (($type->created_by!=$type->pemohon_id && $mode==1) ? ' Wakil kepada: '.$type->pemohon->detail->users_detail_name.' ('.$type->pemohon->detail->users_detail_staffno.')' : '') !!}
@else
{!! (($mode==1) ? ' Wakil kepada bukan warga: '.$type->permohonan_bw_nama.' ('.$type->permohonan_bw_idno.')' : '') !!}
@endif
|
{!! Globe::statusLabel($type->status) !!} |
@if(in_array($type->status,['A']) && $mode==3)
@endif
@if(in_array($type->status,['I']) && $mode==3)
@endif
@if((in_array($type->status,['A','C','I','T','O']) && $mode == 3) || (in_array($type->status,['C','I','T','O']) && in_array($mode,[1,2]) ))
@else
@endif
{{-- @if($type->bomfile && in_array($mode,[3])) --}}
@if(in_array($mode,[2,3]))
@if($mode == 3 && !in_array($type->status,['C','B']))
@endif
@endif
@if($type->status=='N' && $mode==3)
@endif
@if($mode == 1 && $type->created_by==Auth::user()->id)
{{-- @if(in_array($type->status,['D'])) --}}
@if(in_array($type->status,['D','N']))
@endif
{{-- @if($type->status == 'A') --}}
@if($type->status == 'N')
@endif
@endif
@if($type->ticket)
@if(count($type->ticket)>0)
@if(in_array($mode,[1,3]) && ($type->created_by==Auth::user()->id || Auth::user()->can('proses.permohonan.belitiket')))
@endif
@endif
@endif
|
@endforeach
@else