@extends('layouts.admin') @section('content')

Compra #{{ $order->id }}

@csrf
@csrf
@csrf
@if(request()->filled('code')) @svg('heroicon-o-x-circle', 'w-6 h-6 text-blue-500') @else @svg('heroicon-o-code-bracket', 'w-6 h-6 text-blue-500') @endif
@if(!request()->filled('code'))
@foreach ($order->products as $product) @endforeach
Producto Combinaciones Precio Cantidad Descuento Total
{{ $product->product->name }} {{-- @if ( $product->product->variation) {{ $product->product->variation->name }}: {{ App\Models\VariationItem::find($product->pivot->variation_id)->name }} @endif --}}
{{-- @if ($product->combinations->count())
    @foreach ($product->combinations as $p)
  • {{ $p->name }}
  • @endforeach
@endif --}}
${{ number_format($product->price+$product->discount, 2) }} {{$product->quantity}} ${{ number_format($product->discount, 2) }} ${{ number_format($product->price * $product->quantity, 2) }}
Descuento ${{ number_format($order->discount, 2) }}
Total ${{ number_format($order->total, 2) }}
@if($order->bonifications->count())

Bonificaciones

@foreach ($order->bonifications as $bonification) @endforeach
Producto Bonificación Cantidad
{{ $bonification->product->name }} {{ $bonification->bonification->name }} {{ $bonification->quantity }}
@endif @else
            
                {{$order->request}}
            
        
Response
            
                {{$order->response}}
            
        
@endif @endsection