@extends('layouts.admin') @section('content') @php use App\Support\Crm\TicketOptions; @endphp
@include('elements.admin-breadcrumb') @include('elements.alert')
{{ $ticket->ticket_no }}
@can('admin.crm-ticket.edit') Edit @endcan @if($ticket->contact_id) Contact @endif Back
Status @can('admin.crm-ticket.edit') @else {{ $ticket->status }} @endcan
Priority{{ $ticket->priority }}
Channel{{ $ticket->channel }}
Category{{ $ticket->category }}
Name{{ $ticket->contact_name }}
Mobile{{ $ticket->mobile }}
Email{{ $ticket->email ?: '—' }}
Reference{{ $ticket->reference_no ?: '—' }}
Assigned To{{ $ticket->assignedUser?->name ?: '—' }}
Created By{{ $ticket->createdBy?->name ?: '—' }}
Created{{ optional($ticket->created_at)->format('d-m-Y h:i A') }}
Description{!! nl2br(e($ticket->description)) ?: '—' !!}
@if($ticket->attachments->count())
Attachments
@endif
Notes
@can('admin.crm-ticket.edit')
@csrf
@endcan @forelse($ticket->notes as $note)
{{ $note->createdBy?->name ?: '—' }} · {{ optional($note->created_at)->format('d-m-Y h:i A') }} @if($note->reminder_date) · Reminder: {{ $note->reminder_date->format('d-m-Y') }} @endif
{!! nl2br(e($note->note)) !!}
@can('admin.crm-ticket.delete')
@csrf @method('DELETE')
@endcan
@empty

No notes yet.

@endforelse
@endsection @section('scripts') @endsection