@extends('layouts.index') @section('title') Forms Request @endsection @inject('disposition', 'App\Models\FormDisposition') @section('css') @endsection @php $imagesTTD = []; if ($detail->signer) { foreach ($detail->signer as $key => $value) { if ($detail->ttd_type == 'signature') { if ($value->pegawai->user->scan_ttd) { if (Storage::exists($value->pegawai->user->scan_ttd)) { $imagesTTD[] = 'data:image/png;base64,'.base64_encode(file_get_contents(public_path('back/img/place_signer_'.($key+1).'.png'))); } } }elseif ($detail->ttd_type == 'initial') { if ($value->pegawai->user->scan_initial) { if (Storage::exists($value->pegawai->user->scan_initial)) { $imagesTTD[] = 'data:image/png;base64,'.base64_encode(file_get_contents(storage_path('app/'.$value->pegawai->user->scan_initial))); } } } } } $defaultPDF = url(Storage::url($detail->temp_pdf_file)); if ($detail->number && $detail->isSetTTD()) { $defaultPDF = url(Storage::url($detail->pdf_file)); } @endphp @section('content')

{{$detail->subject}}

user
{{$detail->makers->pegawai ? $detail->makers->pegawai->nama_lengkap : $detail->makers->name}} ( {{$detail->makers->email}} )
to {{$to}}
number == null) style="display:none" @endif> @php $id_pegawai = Auth::user()->pegawai ? Auth::user()->pegawai->id : 0; $id_pegawai_signer = $signerActive ? $signerActive->id_pegawai : -1; @endphp @if ($id_pegawai_signer == $id_pegawai) Sign ! Reject @endif
@hasanyrole('admin|documenter') @if ($detail->number && !$detail->isSetTTD()) Signature @endif
number) style="display:none" @endif > Add Number
@endhasanyrole @if ($detail->status == 2 && $detail->pdf_file != null && $detail->isSigned()) Download Forward @endif @if ($detail->maker == Auth::user()->id && $detail->status != 2) Edit @endif
@if ($detail->temp_pdf_file) @foreach ($imagesTTD as $key => $item) @endforeach
    Halaman : /
@else @endif @if ($detail->attachment)
{{-- --}}
   

Attachment

Download here
@endif

Log Activity

    @foreach ($activity as $item) @php $icon = ''; if($item->description == 'created'){ $color = 'warning'; $icon = 'fa fa-plus'; } if($item->description == 'registered'){ $color = 'primary'; $icon = 'fa fa-registered'; } if($item->description == 'rejected'){ $color = 'danger'; $icon = 'fa fa-undo'; } if($item->description == 'signed'){ $color = 'success'; $icon = 'fa fa-check'; } if($item->description == 'uploaded'){ $color = 'info'; $icon = 'fa fa-upload'; } if($item->description == 'updated'){ $color = 'info'; $icon = 'fa fa-edit'; } if($item->description == 'disposition'){ $color = 'warning'; $icon = 'fa fa-forward'; } @endphp
  • Forms {{($item->description == 'disposition') ? 'Forwarded' : ucfirst($item->description)}}

    {{$item->causer->name}}
    ({{$item->causer->pegawai ? ($item->causer->pegawai->jabatan ? $item->causer->pegawai->jabatan->nama : '-') : '-'}})

    {{date('d F Y - H:i:s', strtotime($item->created_at))}} @if ($item->description == 'rejected')

    {{$item->getExtraProperty('note')}}

    @endif @if ($item->description == 'disposition')

    {{$item->getExtraProperty('instructions')}}

    @php $forwarded = $disposition->with('pegawai')->find($item->getExtraProperty('id')); @endphp
    @foreach ($forwarded->pegawai as $i) @endforeach
    @endif
  • @endforeach
@endsection @section('js') @endsection