@extends('layouts.users.app') @section('content')
{{-- Breadcrumb Component --}}

{{__('Sale ticket details')}}

{{ __('Ticket ID') }} {{ $ticket->id }}
{{ __('User') }} @if($ticket->user) {{ $ticket->user->name }} ({{ $ticket->user->email }}) @else {{ __('No User Assigned') }} @endif
{{ __('Stage') }} {{ $ticket->stage->label() }}
{{ __('Approved At') }} @if ($ticket->approvet_at) {{ \Carbon\Carbon::parse($ticket->approvet_at)->format('d/m/Y H:i') }} @else Not Approved @endif
{{ __('Status') }} {{ $ticket->status->label() }}
{{ __('Created At') }} {{ $ticket->created_at->format('d/m/Y H:i') }}
@if(!empty($ticket->request->machine_details['generalInfo'])) @foreach($ticket->request->machine_details['generalInfo'] as $key => $value) @endforeach @endif @if(!empty($ticket->request->machine_details['techDetail'])) @foreach($ticket->request->machine_details['techDetail'] as $key => $value) @endforeach @endif @foreach($ticket->request->machine_details['priceInfo'] as $key => $value) @endforeach
{{ __('General Machine Information') }}
{{ __(str_replace('_', ' ', $key)) }} {{ $value }}
{{ __('Technical Information') }}
{{ __(str_replace('_', ' ', $key)) }} {{ $value }}
{{ __('Price Information') }}
{{ __(str_replace('_', ' ', $key)) }} @if($key === 'currency_id') {{ \App\Models\Currency::getLabelById($value) }} @else {{ $value }} @endif
@if($ticket->media->isNotEmpty())
@if($images->isNotEmpty())

{{ __('Images') }}

@foreach($images as $media) @endforeach
@endif @if($video)

{{ __('Video') }}

@endif
@else {{-- Mensaje si no hay media asociada --}}

{{ __('Media') }}

{{ __('No media available for this ticket.') }}

@endif
@endsection @push('styles') {{-- Estilos para GLightbox --}} @endpush @push('scripts') {{-- Script de GLightbox --}} @endpush