@extends('layouts.motoboy_dashboard') @section('content')
Dosagem: {{ $entrega->pedidoTroca->medicamento->dosage }}
Laboratório: {{ $entrega->pedidoTroca->medicamento->laboratorio }}
Validade: {{ \Carbon\Carbon::parse($entrega->pedidoTroca->medicamento->validade)->format('d/m/Y') }}
Quantidade: {{ $entrega->pedidoTroca->medicamento->remaining_quantity }}
Data do Pedido: {{ \Carbon\Carbon::parse($entrega->created_at)->format('d/m/Y H:i') }}
Distância Estimada: {{ \App\Helpers\EntregaHelper::calcularDistancia($entrega->pedidoTroca->requester->enderecos->first()->cep, $entrega->pedidoTroca->medicamento->user->enderecos->first()->cep) }}
Motoboy Responsável: {{ $entrega->motoboy?->name ?? 'Nenhum motoboy atribuído' }}
{{ $entrega->pedidoTroca->medicamento->user->name }}
{{ $entrega->pedidoTroca->requester->name }}