@extends('frontend.layout.master') @section('site_title') {{ $ticket_details->title ?? __('Support Tickets') }} @endsection @section('style') @endsection @section('content')
@include('frontend.user.layout.partials.sidebar')
#{{ $ticket_details->id }}
@if($ticket_details->status == 'close') {{ __('Closed') }} @else {{ __('Open') }} @endif {{ $ticket_details->priority }}

{{ $ticket_details->title }}

{{ __('Last update') }} {{ $ticket_details?->get_ticket_latest_message?->updated_at->diffForHumans() ?? $ticket_details->updated_at->diffForHumans() }}
@foreach($ticket_details->message as $message) @if($message->type == 'admin')
{{ __('admin') }}

{{ $message->message }}

@if($message->attachment) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('Download Attachment') }} @else {{ __('Download Attachment') }} @endif @endif

{{ $message->created_at->diffForHumans() }}

@else
@if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('freelancer') }} @else {{ __('freelancer') }} @endif

{{ $message->message }}

@if($message->attachment) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('Download Attachment') }} @else {{ __('Download Attachment') }} @endif @endif

{{ $message->created_at->diffForHumans() }}

@endif @endforeach
@csrf
@endsection @section('script') @include('supportticket::freelancer.ticket-js') @endsection