@props([ 'export' => false, ]) @extends('report.layout') @section('title', $estimateTemplate->correlative_code) @section('type', __('lang.provider')) @section('extra_info')

{{ __('lang.provider') }}

{{ __('lang.provider') }} : {{ $estimateTemplate->provider->name }}
{{ __('lang.created_at') }} : {{ DateHelper::format($estimateTemplate->created_at) }}

{{ __('lang.estimate') }}

{{ __('lang.number') }} #: {{ $estimateTemplate->correlative_code }}
{{ __('lang.created_at') }} : {{ DateHelper::format($estimateTemplate->created_at) }}
@endsection @section('content')
@php $total = 0; @endphp
@foreach($estimateTemplate->estimateTemplateSections as $key => $section) @foreach($section->estimateTemplateProducts as $keyProduct => $product) @if(!$product->product || $product->provider_id == App\Helpers\ConstGlobal::PROVIDER_INTERNAL) @continue @else @php $quantity = $product->getQuantityPerSecton(); $total += $product->product->purchase_price * $quantity; @endphp @endif @endforeach
{{ $section->name }}
{{ __('lang.provider') }} {{ __('lang.product.product') }} {{ __('lang.quantity') }} {{ __('lang.price_per_unit') }} {{ __('lang.price') }}
{{ $product->product->provider->name ?? '' }} {{ $product->product->name ?? '' }} @if($product->product->descripcion) {{ $product->product->descripcion }} @endif {{ $product->product->measureType->abbreviation ?? ''}} : {{ ceil($quantity) }} {{ MoneyHelper::format($product->product->purchase_price) }} {{ MoneyHelper::format($product->product->purchase_price * $quantity) }}
@endforeach
{{ __('lang.total') }}: {{ MoneyHelper::format($total) }}
@endsection