@extends('layouts.motoboy_dashboard') @section('content')
Pedido Troca: #{{ $entrega->pedidoTroca->codigo_troca ?? 'N/A' }}
Medicamento: {{ $entrega->pedidoTroca->medicamento->name ?? 'N/A' }}
Origem: @php $ownerAddress = $entrega->pedidoTroca->medicamento->owner->enderecos->first(); @endphp {{ $ownerAddress->bairro ?? 'Bairro N/A' }} @if ($ownerAddress->cidade ?? false) , {{ $ownerAddress->cidade }} @endif
Solicitante: {{ $entrega->pedidoTroca->requester->name ?? 'N/A' }}
Destino: @php $requesterAddress = $entrega->pedidoTroca->requester->enderecos->first(); @endphp {{ $requesterAddress->bairro ?? 'Bairro N/A' }} @if ($requesterAddress->cidade ?? false) , {{ $requesterAddress->cidade }} @endif
Custo: R$ {{ number_format($entrega->custo_entrega ?? 0, 2, ',', '.') }}
Pagamento: {{ ucfirst(str_replace('_', ' ', $entrega->metodo_pagamento ?? 'N/A')) }}
Criado em: {{ \Carbon\Carbon::parse($entrega->created_at)->format('d/m/Y H:i') }}
@if($status) Nenhuma entrega com o status "{{ ucfirst(str_replace('_', ' ', $status)) }}" para exibir. @else Nenhuma entrega em andamento para exibir. @endif
Mantenha-se ativo para ver novas entregas!