Detalhes de Reparação

Número de Documento: {{ $workorder->isDocument->document }}
Filial: {{ $workorder->isDocument->garageShop->name }}
Cliente: {{ $workorder->hasVehicle->vOwner->name }}
Veículo: {{ $workorder->hasVehicle->vModel->name }}
@foreach ($partModelsList as $item) @endforeach @foreach ($servicesList as $item) @endforeach
Peça/Serviço Quantidade Custo/Unidade Custo/Total Margem de Lucro PVP Total
{{ $item['partModel']->name }} {{ (int) $item['amount'] }} {{ number_format((float) $item['cost'], 2) }}€ {{ number_format((float) $item['cost'] * (int) $item['amount'], 2) }}€ {{ (float) $item['profit_margin'] * 100 }}% {{ number_format(((float) $item['cost'] + ((float) $item['cost'] * (float) $item['profit_margin'])) * 1.23, 2) }}€ {{ number_format((((float) $item['cost'] + ((float) $item['cost'] * (float) $item['profit_margin'])) * 1.23) * (int) $item['amount'], 2) }}€
{{ $item['service']->name }} {{ (int) $item['amount'] }} {{ number_format((float) $item['service']->hour_rate, 2) }}€ {{ number_format((float) $item['service']->hour_rate * (int) $item['amount'], 2) }}€ {{ number_format((float) $item['service']->hour_rate * (int) $item['amount'], 2) }}€
Total: {{ number_format((float) $workorder->isDocument->total, 2) }}€