@props([ 'export' => false, 'showSignature' => false, ]) @extends('report.layout') @section('title', $estimatePreview->correlative_code) @section('type', __('lang.estimate')) @section('client_info') @include('report.partial.client-info', ['client' => $estimatePreview->project->client]) @endsection @section('project_info') @include('report.partial.project-info', ['project' => $estimatePreview->project]) @endsection @section('extra_info')

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

{{ __('lang.number') }} #: {{ $estimatePreview->correlative_code }}
{{ __('lang.created_at') }} : {{ DateHelper::format($estimatePreview->created_at) }}
@endsection @section('content')
{!! $estimatePreview->introduction !!}

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

{!! $estimatePreview->contract_detail !!} @if($estimatePreview->discount_id) @endif @if($showSignature && $estimatePreview->clientStatusEstimates->last() !== null && $estimatePreview->clientStatusEstimates->last()->status === \App\Models\ClientStatusEstimate::ACCEPTED) @endif
{{ __('lang.sub_total') }} {{ MoneyHelper::format($estimatePreview->sub_total) }}
{{ __('lang.tax') }} {{ MoneyHelper::format($estimatePreview->tax) }}
{{ __('lang.discount') }} : {{ $estimatePreview->discount->getDiscountName() }} {{ MoneyHelper::format($estimatePreview->getDiscountTotal() * -1) }}
{{ __('lang.total') }}: {{ MoneyHelper::format($estimatePreview->total) }}
@endsection