@extends('layouts.app') @section('content')
Productos
@php $con = 0; @endphp @foreach ($products as $product) @php $con++; @endphp @if ($con == 1)
@endif

{{ $product->type->name }}

{{ $product->description }}

@if ($con == 2)
@php $con = 0; @endphp @endif @endforeach @if (($con % 2) != 0)
@endif
Articulo Cantidad Precio Unidad Precio Total
Precio Servicios Precio Productos Precio Total
0 0 0
Servicios
@php $contador = 0; @endphp @foreach ($services as $service) @php $contador++; @endphp @if ($contador == 1)
@endif

{{ $service->type->name }}

{{ $service->description }}

@if ($contador == 2)
@php $contador = 0; @endphp @endif @endforeach
@endsection