@extends('backend.layouts.app') @section('content') @if(isset($params->id) && $params->id)

見積【確認】

{{ Form::open(["route"=>"backend.{$department}.estimate.update", "method"=>"post"]) }} @else

見積【確認】

{{ Form::open(["route"=>"backend.{$department}.estimate.store", "method"=>"post"]) }} @endif @if(!empty($params->estimate_no)) @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 : '' }}

作業内容

@php $total = 0; $tax_total = 0; @endphp @if(!is_null($addition)) @foreach($addition as $item) @php $total += $item['sub_total']; $tax_total += $item['discount']; @endphp @endforeach @endif
項目 数量 単価 金額 消費税 備考
{{ $item['summary'] }} {{ !empty($item['quantity']) ? number_format($item['quantity']) : '' }} {{ !empty($item['unit_price']) ? number_format($item['unit_price']) : '' }} {{ !empty($item['sub_total']) ? number_format($item['sub_total']) : '' }} {{ !empty($item['discount']) ? number_format($item['discount']) : '' }} {{ $item['note'] }}
小計 {{ !empty($total) ? number_format($total).'円' : '' }}
消費税 {{ !empty($tax_total) ? number_format($tax_total).'円' : '' }}
車両代合計 {{ !empty($tax_total + $total) ? number_format($tax_total + $total).'円' : '' }}
@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($tax_total + $total +$total_fee ) ? number_format($tax_total + $total +$total_fee).'円' : '' }}
@endif @if(isset($params['is_agree']))
承認 {{ config('const.estimate_print_status_lang.'.$params['is_agree']) }}
@endif
@if(isset($params->id) && $params->id) 1]) }}"'> @else 1]) }}"'> @endif
{{ Form::close() }} @endsection @section('page_css') @endsection @section('page_js') @endsection