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

見積【確認】

@if(isset($params->id) && $params->id) {{ Form::open(["route"=>["backend.{$department}.estimate.update", 'id'=>$params->id], "method"=>"post", "id" => "frm_estimate"]) }} @else {{ Form::open(["route"=>"backend.{$department}.estimate.store", "method"=>"post", "id" => "frm_estimate"]) }} @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.' '.$params->part_partner->company_name2 : '' }}
入力担当者 {{ $params->input_user->name_kanji }}
担当者 {{ \App\Service\UserService::getUserName($params->charge_user) }}
取引先名
①顧客名:  {{ $params->company_name1 }}
②顧客名:  {{ $params->company_name2 }}
合計金額 {{ isset($params->estimated_amount) ? number_format($params->estimated_amount) . '円' : '' }}

車両情報

管理番号 {{ $params->manage_no }} 車台番号 {{ $params->chassis_no }} 車両メーカ名 {{ $params->vehicle_name }} 初年度登録 {{ $params->register_first_year }}

内容

@php $total = 0; $tax_total = 0; @endphp @if(!is_null($addition)) @foreach($addition as $item) @endforeach @endif
項目 数量 単価 金額
{{ $item['summary'] }} {{ isset($item['quantity']) ? number_format($item['quantity']) : '' }} {{ isset($item['unit_price']) ? number_format($item['unit_price']) : '' }} {{ isset($item['sub_total']) ? number_format($item['sub_total']) : '' }}
小計 {{ isset($params->list_sum) ? number_format($params->list_sum).'円' : '' }}
消費税 {{ isset($params->list_tax) ? number_format($params->list_tax).'円' : '' }}
合計 {{ isset($params->list_total) ? number_format($params->list_total).'円' : '' }}

付帯費用(非課税)

付帯費用(課税)

@foreach(range(1, 6) as $index) @php $title_field = 'fee_title'.sprintf('%02d', $index); $type_field = 'fee_type'.sprintf('%02d', $index); $fee_field = 'fee'.sprintf('%02d', $index); $consumption_fee_field = 'consumption_fee'.sprintf('%02d', $index); $const_arr = $department != 'parts' ? 'fee_title_truck_bill' : 'fee_title_bill'; @endphp @php $title_field = 'fee_title'.sprintf('%02d', ($index+6)); $type_field = 'fee_type'.sprintf('%02d', ($index+6)); $fee_field = 'fee'.sprintf('%02d', ($index+6)); $consumption_fee_field = 'consumption_fee'.sprintf('%02d', ($index+6)); $const_arr = $department != 'parts' ? 'fee_title_truck_bill' : 'fee_title_bill'; @endphp @endforeach
{{ $department != 'parts' ? $params->$title_field : ( $params->$fee_field ? $params->$title_field : '' ) }} {{ $params->$type_field ? '*' : '' }} {{ isset($params->$fee_field) ? number_format($params->$fee_field) : "" }} {{ $department != 'parts' ? $params->$title_field : ( $params->$fee_field ? $params->$title_field : '' ) }} {{ $params->$type_field ? '*' : '' }} {{ isset($params->$fee_field) ? number_format($params->$fee_field) : "" }}
諸費用(非課税) {{ isset($params->add_exe_tax_sum) ? number_format($params->add_exe_tax_sum) . '円' : '' }}
諸費用(課税) {{ isset($params->add_tax_sum) ? number_format($params->add_tax_sum) . '円' : '' }}
諸費用消費税 {{ isset($params->add_tax_price) ? number_format($params->add_tax_price) . '円' : '' }}
諸費用合計 {{ isset($params->add_total) ? number_format($params->add_total) . '円' : '' }}

承認申請 (※再申請の際はクリアボタンを押し再度申請日、承認者を入力後更新して下さい。)

承認申請 @php $agree_status = \App\Service\Estimate\EstimateService::getAgreeStatus(isset($params['is_agree']) ? $params['is_agree'] : '', isset($params['confirm_charger']) ? $params['confirm_charger'] : '') @endphp {{ $agree_status == config('const.estimate_print_status.empty') ? '' : config('const.estimate_check_lang.' . $agree_status) }}
社内メモ

{{ isset($params['memo']) ? $params['memo'] : '' }}

@if(isset($params->id) && $params->id) 1]) }}"'> @else 1]) }}"'> @endif
{{ Form::close() }} @endsection @section('page_css') @endsection @section('page_js') @endsection