@extends('layouts.users.app') @section('content')
{{-- Breadcrumb Component --}}
{{-- Alerts --}} @if (session('success')) @endif @if (session('error')) @endif
{{-- Header: Title & Status Badges --}}

Ticket #{{ $ticket->id }}

{{ ucfirst($ticket->status->label()) }} {{ ucfirst($ticket->stage->label()) }}
{{-- Grid principal (Bootstrap Row) --}}
{{-- Columna izquierda --}}
{{-- Detalles del Ticket --}}

{{ __('Update Purchase Ticket') }}

{{ __('Modify supplier details, unit costs, and quantities received for this acquisition record.') }} {{ __('Updating this data will automatically synchronize your stock levels.') }}

{{-- Team Comments --}}

{{ __('Team Hub') }}

{{ __('Internal collaboration space for team members. Share notes, updates, and private observations about this ticket.') }}

{{-- Columna derecha --}}
{{-- Update Status --}} @if ($statusOptions)
@csrf @method('PATCH')

{{ __('Ticket Status') }}

{{ __('Manage the lifecycle and administrative status of this purchase record.') }}

Update Status
@endif {{-- Update Channels --}} @if ($ticket->stage === App\Enums\PurchaseTicketStageEnum::MACHINE_SEARCH)
@csrf @method('PATCH')

{{ __('Social Channels') }}

{{ __('Select the channels where this machine is being actively searched.') }}

@foreach ($channelOptions as $channel)
value, $channelKeys ?? []))>
@endforeach
Update Channels
@endif {{-- Activity Log --}} @include('components.tickets.activity-history', [ 'activities' => $activities, ]) @if (!$ticket->isAproved())

{{ __('Return with Comments') }}

{{ __('Send back to customer for corrections. Visible to the client.') }}

@include('purchase-ticket.partials._observations-list') @if ($ticket->status !== \App\Enums\PurchaseTicketStatusEnum::RETURNED) @include('purchase-ticket.observations.create') @endif
@endif @if (!$ticket->isAproved())

{{ __('System Actions') }}

{{ __('Critical management operations. Use with caution as these actions may affect ticket visibility or archival status.') }}

@if ($ticket->status != \App\Enums\PurchaseTicketStatusEnum::ARCHIVED)
@csrf @method('PATCH')
Archive Ticket
@endif
@endif
@endsection