@extends('backend.layouts.app') @section('content')

見積{{ !$params->is_agree ? '承認' : '確認' }}

@include('backend.layouts.flash-message') @if ($params->is_agree == config('const.estimate_print_status.reject'))

否決理由

@include('backend.share.estimate._reject_reason_table')

見積内容

@endif @if ($department != "moritis") @if ($department === "lease") @else @endif @endif
見積番号 {{ $params->estimate_no }}
見積日 {{ empty($params->estimate_date) ? '' : Carbon::parse($params->estimate_date)->format('Y-m-d') }}
リース先 {{ isset($params->part_partner->company_name1) ? $params->part_partner->company_name1 : '' }}

作業内容

@if(!is_null($params->addition)) @foreach($params->addition as $addition) @endforeach @endif
項目 数量 単価 金額 消費税 備考
{{ $addition->summary }} {{ is_numeric($addition->quantity) ? number_format($addition->quantity) : '' }} {{ is_numeric($addition->unit_price) ? number_format($addition->unit_price) : '' }} {{ is_numeric($addition->sub_total) ? number_format($addition->sub_total) : '' }} {{ is_numeric($addition->discount) ? number_format($addition->discount) : '' }} {{ $addition->note }}
小計 {{ !empty($params->tax() + $params->tax_except()) ? number_format($params->tax() + $params->tax_except()).'円' : '' }}
消費税 {{ !empty($params->tax_excempt()) ? number_format($params->tax_excempt()).'円' : '' }}
車両代合計 {{ !empty($params->tax_excempt() + $params->tax() + $params->tax_except()) ? number_format($params->tax_excempt() + $params->tax() + $params->tax_except()).'円' : '' }}
@if($department == 'truck')
@else @php $total_fee = 0; @endphp @foreach(range(1, 12) as $index) @if($index % 2 == 0) @endif @endforeach
付帯費用
@php $title_field = 'fee_title'.sprintf('%02d', $index); $fee_field = 'fee'.sprintf('%02d', $index); @endphp {{ isset($params->$title_field) ? $params->$title_field : '' }}
{{ is_numeric($params->$fee_field) ? number_format($params->$fee_field) : '' }} @php $total_fee += $params->$fee_field; @endphp
付帯費用合計 {{ !empty($total_fee) ? number_format($total_fee).'円' : '' }}
見積合計 {{ !empty($params->tax_except() + $params->tax_excempt() + $params->tax() +$total_fee ) ? number_format($params->tax_except() + $params->tax_excempt() + $params->tax() +$total_fee).'円' : '' }}
@endif
承認 {{ config('const.estimate_print_status_lang.'.$params->is_agree) }}
@if (!$params->is_agree) @endif
@endsection @section('page_css') @endsection @section('page_js') @endsection