@extends('layouts.index') @section('title') Forms Request @endsection @inject('disposition', 'App\Models\FormDisposition') @section('css') @endsection @php $imgTTD = null; if ($detail->ttd_type == 'signature') { if (Auth::user()->scan_ttd) { if (Storage::exists(Auth::user()->scan_ttd)) { $imgTTD = 'data:image/png;base64,'.base64_encode(file_get_contents(storage_path('app/'.Auth::user()->scan_ttd))); } } }elseif ($detail->ttd_type == 'initial') { if (Auth::user()->scan_initial) { if (Storage::exists(Auth::user()->scan_initial)) { $imgTTD = 'data:image/png;base64,'.base64_encode(file_get_contents(storage_path('app/'.Auth::user()->scan_initial))); } } } @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) Signature Reject @endif
@can('numbering')
number) style="display:none" @endif > Add Number
@endcan @if ($detail->status == 2 && $detail->pdf_file != null) Download Forward @endif @if ($detail->maker == Auth::user()->id && $detail->status != 2) Edit @endif
@if ($detail->temp_pdf_file)
    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