@extends('admin.layouts.app') @section('title', $order->tracking_code) @section('heading', __('admin.menu_repair_orders')) @section('content')
{{ __('admin.repair_device') }}
{{ $order->device_name }}
{{ __('admin.repair_serial') }}
{{ $order->serial ?: '—' }}
{{ __('admin.repair_customer_name') }}
{{ $order->customer_name ?? $order->user?->name }}
{{ __('admin.repair_customer_mobile') }}
{{ $order->customer_mobile ?? $order->user?->mobile }}
{{ __('admin.status') }}
{{ \App\Domain\Repair\RepairOrderStatusPresenter::labelFor($order->status) }}
{{ __('admin.repair_received_at') }}
{{ __('admin.repair_progress') }}
{{ \App\Domain\Repair\RepairOrderStatusPresenter::progressFor($order->status) }}%
@if ($order->issue_body)

{{ __('admin.body') }}

{{ $order->issue_body }}

@endif @can(\App\Models\Permission::ORDERS_INVOICE)
@csrf @method('PATCH')
@endcan @can(\App\Models\Permission::ORDERS_STATUS)
@csrf @method('PATCH')
@endcan @if ($order->statusLogs->isNotEmpty())

{{ __('admin.repair_status_timeline') }}

    @foreach ($order->statusLogs as $log)
  1. @if ($log->from_status) {{ \App\Domain\Repair\RepairOrderStatusPresenter::labelFor($log->from_status) }} → @endif {{ \App\Domain\Repair\RepairOrderStatusPresenter::labelFor($log->to_status) }} @if ($log->user) ({{ $log->user->name }}) @endif @if ($log->note)

    {{ $log->note }}

    @endif
  2. @endforeach
@endif

{{ __('admin.repair_photos') }}

@can(\App\Models\Permission::MEDIA_UPLOAD)
@csrf
@endcan @if ($order->photos->isNotEmpty())
@foreach ($order->photos as $photo)
@if ($photo->tag)

{{ $photo->tag }}

@endif @can(\App\Models\Permission::MEDIA_DELETE)
@csrf @method('DELETE')
@endcan
@endforeach
@endif
@if ($order->qr_code_path)
@endif @if ($order->complaint_id) {{ __('admin.complaint_source') }} @endif @can(\App\Models\Permission::ORDERS_INVOICE) {{ __('admin.repair_invoice') }} @endcan
@endsection