@php use App\Helpers\Helper; use Request as Input; use Carbon\Carbon; @endphp @extends('layouts.master') @section('title', 'Contact Note') @section('content')
@include('admin.errors.error') @section('breadcrumbs') @endsection

Details

  • Note:
    #{!! $note->comment !!}
  • Created By: {{ isset($note->getCreatedByName) ? $note->getCreatedByName->first_name.' '.$note->getCreatedByName->last_name : '-'}}

Comment

{!! Form::open([ 'route' => ['admin.contact.note.comment'], 'id' => 'addcomment', 'name' => 'addcomment', 'enctype' => 'multipart/form-data', ]) !!} @csrf
{!! Form::label('comment', 'Enter Comment', ['class' => 'form-label', 'for' => 'title']) !!} * {!! Form::textarea('comment', Input::old('comment'), [ 'id' => 'v', 'class' => 'form-control', 'placeholder' => 'Enter Comment', 'tabindex' => '5', 'rows' => '6', ]) !!}
{!! Form::close() !!}
@if (count($noteHistory) > 0)
Notes History
    @php $i=0; @endphp @foreach ($noteHistory as $key => $history)
  • {{ $history->created_at->diffForHumans() }} @if($key==0)  New Update @endif
    @php $userID = isset($history->getCommenterUser) ? $history->getCommenterUser->id : '' @endphp Avatar
    {{ isset($history->getCommenterUser) ? $history->getCommenterUser->ownerName : '' }}
    {{ isset($history->getCommenterUser->roles) ? $history->getCommenterUser->roles[0]->name : '' }}

    {{ isset($history->comment) ? $history->comment : '' }}

  • @endforeach
@endif
@include('admin.confirmalert') @endsection @section('scripts') @endsection