List of Comments
@if (isset($commentspack))
    @foreach ($commentspack?->comments->sortByDesc('id') as $comment)
  • {{ $comment->createdBy?->name ?? '' }} ({{ \Carbon\Carbon::parse($comment->created_at)->format('d M Y h:i:s') }}):
    {{ $comment->createdBy?->userType->name }}

    {{ $comment->comments }}

  • @endforeach
@endif
@php @endphp
@if (isset($commentspack))
{{ $commentspack?->customer_type != 0 ? optional($commentspack?->user)->name : optional($commentspack?->customer)->name }}

{{ $commentspack?->customer_type != 0 ? optional($commentspack?->user)->email : optional($commentspack->customer)->email }}

{{ $commentspack?->customer_type != 0 ? optional($commentspack?->user)->mobile : optional($commentspack?->customer)->mobile }}

{{ optional($commentspack?->franchise)->name ?? '' }}

@if ($commentspack?->package)
{{ $commentspack->package->name ?? '' }} @include('Enquiries.partials.comment-modal', ['enquiryID' => $commentId, 'package'=> $commentspack->package->id])
@endif @endif
Enquiries
@csrf @if (@$commentspack->package) @else @endif @if($cse)
@endif