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

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

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

{!! $estimate->introduction !!}

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


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

@csrf
@csrf
@csrf
@elseif($clientStatusEstimate->isAccepted())
{{ __('lang.status') }}: {{ $clientStatusEstimate->getStatusLabel() }}
@elseif($clientStatusEstimate->isRevision() || $clientStatusEstimate->isCanceled())
{{ __('lang.status') }}: {{ $clientStatusEstimate->getStatusLabel() }}
{{ __('lang.comment') }}:

{!! $clientStatusEstimate->comment_client !!}

@endif @endsection