@extends('supportticket::layouts.master') @section('content')

{{ __('Support Ticket') }} #{{ $supportTicket->ticket_number }}

{{ $supportTicket->created_at->format('d F, Y') }} #{{ $supportTicket->ticket_number }}
@php $status = $supportTicket->status; $btnColor = 'primary'; if ($status == 'pending') { $btnColor = 'warning'; } elseif ($status == 'confirm') { $btnColor = 'primary'; } elseif ($status == 'completed') { $btnColor = 'success'; } elseif ($status == 'cancel') { $btnColor = 'danger'; } @endphp @hasPermission('admin.supportTicket.setScheduled') @endhasPermission
{{ __('Order Number') }}
{{ $supportTicket->order_number ?? __('N/A') }}
{{ __('Issue Type') }}
{{ $supportTicket->issue_type }}
{{ __('Subject') }}
{{ $supportTicket->subject }}
{{ __('Contact Info') }}
{{ __('Email') }}
{{ $supportTicket->email }}
{{ __('Phone') }}
{{ $supportTicket->phone ?? __('N/A') }}
{{ __('File Attachment') }}
@forelse ($supportTicket->attachments as $attachment) @if ($attachment->type == 'image') attachment @else attachment @endif @empty

{{ __('No attachment found!') }}

@endforelse
{{__('Customer Send Message Enable/Disable')}} @hasPermission('admin.supportTicket.chatToggle') @endhasPermission
@foreach ($supportTicket->messages as $message) @php $sender = $message->sender->id == auth()->id() ? true : false; $id = $loop->index; @endphp
@if ($sender)
avatar
@endif @if (!$sender)
avatar
@endif
{{ $message->created_at->format('d F, Y') }}
@endforeach
@php $showSendBox = true; if ($supportTicket->status == 'completed') { $showSendBox = false; } elseif ($supportTicket->status == 'cancel') { $showSendBox = false; } @endphp @hasPermission('admin.supportTicket.sendMessage') @if ($showSendBox)
@endif @endhasPermission
@php $start_date = $supportTicket->ticket_start ? Carbon\Carbon::parse($supportTicket->ticket_start)->format('Y-m-d') : null; $start_time = $supportTicket->ticket_start ? Carbon\Carbon::parse($supportTicket->ticket_start)->format('H:i') : null; $end_date = $supportTicket->ticket_end ? Carbon\Carbon::parse($supportTicket->ticket_end)->format('Y-m-d') : null; $end_time = $supportTicket->ticket_end ? Carbon\Carbon::parse($supportTicket->ticket_end)->format('H:i') : null; @endphp
@csrf
@endsection @push('scripts') @endpush