@php //dd($comments); @endphp @include('includes.header')

View Document

@if($doc->workflow_status == '0')

Document Status: No Action

@elseif ($doc->workflow_status == '1')

Document Status: In Process

@else

Document Status: Action Taken

@endif

Document Type: {{$doc->document_type->name}}

Message: {{$doc->description}}

Date: {{date('d-m-Y',strtotime($doc->created_at))}}

Attachments

@foreach($doc->attachment as $attachment) @if($attachment->is_remove != '1') @if($attachment->type == 'pdf')

{{(strlen($attachment->name) > 15)?substr($attachment->name, 0, 15) . '...':$attachment->name}}

@elseif($attachment->type == 'jpg' || $attachment->type == 'jpeg' || $attachment->type == 'png' || $attachment->type == 'gif')

{{(strlen($attachment->name) > 15)?substr($attachment->name, 0, 15) . '...':$attachment->name}}

@elseif($attachment->type == 'msword' || $attachment->type == 'doc' || $attachment->type == 'docx')

{{(strlen($attachment->name) > 15)?substr($attachment->name, 0, 15) . '...':$attachment->name}}

@elseif($attachment->type == 'xls' || $attachment->type == 'xlsx')

{{(strlen($attachment->name) > 15)?substr($attachment->name, 0, 15) . '...':$attachment->name}}

@elseif($attachment->type == 'ppt' || $attachment->type == 'pptx')

{{(strlen($attachment->name) > 15)?substr($attachment->name, 0, 15) . '...':$attachment->name}}

@elseif($attachment->type == 'zip')

{{(strlen($attachment->name) > 15)?substr($attachment->name, 0, 15) . '...':$attachment->name}}

@endif @endif @endforeach

Comments

    @foreach($comments as $message)
  • {{ucwords(str_replace('_',' ',$message->user->name))}}

    {{date('d-m-Y h:i A',strtotime($message->created_at))}}

    {{$message->comment}}

  • @endforeach
{{csrf_field()}}
@include('includes.footer')