@extends('backend.layout.master') @section('title', __('Ticket Details')) @section('style') @endsection @section('content')
#{{ $ticket_details->id }}
@if($ticket_details->status == 'open') {{ __('Open') }} @else {{ __('Closed') }} @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')
@if(Auth::check() && Auth::guard('admin')->user()->image) {!! render_image_markup_by_attachment_id(Auth::guard('admin')->user()->image,'','thumb') !!} @else {{ __('admin') }} @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() }}

@else
@if($ticket_details->freelancer?->image) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('profile img') }} @else {{ __('freelancer') }} @endif @else @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('profile img') }} @else {{ __('client') }} @endif @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
@can('support-ticket-reply')
@endcan
@can('support-ticket-close') @if($ticket_details->status === 'open') @endif @endcan

{{ __('Ticket Details') }}

{!! $ticket_details->description ?? __('No Details') !!}

@endsection @section('script') @include('supportticket::backend.ticket.ticket-js') @endsection