@extends('layouts.front-end.app') @section('title', translate('support_Ticket')) @section('content')
@include('web-views.partials._profile-aside')
{{ \App\Utils\customer_info()->f_name }} {{ \App\Utils\customer_info()->l_name }}
priority == 'Urgent') class="py-2 badge badge-danger rounded text-capitalize" @elseif($ticket->priority == 'High') class="py-2 badge badge-warning rounded text-capitalize" @elseif($ticket->priority == 'Medium') class="py-2 badge badge-success rounded text-capitalize" @else class="py-2 badge badge-info rounded text-capitalize" @endif >{{ translate($ticket->type) }}
{{translate('status')}}:
{{ ucwords($ticket->status) }}
{{translate('priority')}}:
priority == 'Urgent') class="text-danger fw-bold" @elseif($ticket->priority == 'High') class="text-warning fw-bold " @elseif($ticket->priority == 'Medium') class="text-success fw-bold" @else class="text-primary fw-bold" @endif> {{ translate($ticket->priority) }}
@if($ticket->status != 'close') {{ translate('close_this_ticket') }} {{ translate('close') }} @endif
@foreach($ticket->conversations as $conversation) @if($conversation['admin_id']) @php($admin=\App\Models\Admin::where('id',$conversation['admin_id'])->first())
@if ($conversation['admin_message'])

{{$conversation['admin_message']}}

@endif @if ($conversation['attachment'] !=null && count($conversation->attachment_full_url) > 0)
@foreach ($conversation->attachment_full_url as $key => $photo) @endforeach
@endif {{$conversation->created_at->diffForHumans()}}
@else
@if ($conversation['customer_message'])

{{$conversation['customer_message']}}

@endif @if ($conversation['attachment'] !=null && count($conversation->attachment_full_url) > 0)
@foreach ($conversation->attachment_full_url as $key => $photo) @endforeach
@endif

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

@endif @endforeach
@if ($ticket['description'])

{{$ticket['description']}}

@endif @if ($ticket['attachment'] != null && $ticket->attachment_full_url && count($ticket->attachment_full_url) > 0)
@foreach ($ticket->attachment_full_url as $key => $photo) @endforeach
@endif

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

@if($ticket->status != 'close') @endif
@endsection @push('script') @endpush