@extends('layouts.page') @section('title', 'Issues') @section('content') @php $pageName = 'Issue | Details'; // Set the dynamic page name @endphp @include('session-message')

Assignee: {{ $name->name ?? '' }}

{{ $issue->urgency == 1 ? 'Urgent' : 'Normal' }}
{{ $issue->title ?? '' }}
@if(Auth::user()->hasRole('admin') || Auth::user()->hasRole('super_admin') || Auth::user()->id == $issue->assignee) Download Report @endif

{{ $issue->reporter->name ?? '' }} ({{$issue->organization->name ?? '' }})

{{ \Carbon\Carbon::parse($issue->created_at)->format('j F Y h:i A') }}

@if($issue->type == 'software')

Issue: {{ ucfirst($issue->type) ?? 'No type' }} {{ $issue->sub_type ?? 'No Subtype' }}

@elseif($issue->type == 'hardware')

Issue: {{ ucfirst($issue->type) ?? 'No type' }} {{ $issue->device_type ?? 'No Device' }} {{ $issue->device_sl ?? 'No Serial No.' }}

@endif

{!! nl2br(e($issue->description ?? '' )) !!}

@if(!empty($attachments) && count($attachments) > 0) @endif
{{-- ══ Messenger-style chat panel ══ --}}
Replies
Issue #{{ $issue->serial_no ?? $issue->id }}
{{-- This is the only part that gets swapped out on send / on background polling --}}
@include('issue.replies')
@if(!$issue->closed)
@csrf
JPEG, PNG, JPG, GIF, SVG, TXT, ZIP, RAR, CSV, XLSX, MP4, PDF · Max 10MB total
{{-- Show general error for the attachment field --}} @error('attachment')
{{ $message }}
@enderror {{-- Show specific errors for each file --}} @if ($errors->has('attachment.*')) @foreach ($errors->get('attachment.*') as $messages) @foreach ($messages as $message)
{{ $message }}
@endforeach @endforeach @endif {{-- Error message container for JavaScript --}}
@else @endif
@if(Auth::user()->id == $issue->reported_by) @include('layouts.preloader') @endif @endsection
× modal
@push('scripts') @endpush