@extends('backend.layouts.app') @section('content') @if(isset($params->id) && $params->id)
見積番号 | {{ $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 : '' }} | @else @endif @endif
顧客名 | {{ $params->partner_name }} | 管理番号 | {{ $params->manage_no }} | 車台番号 | {{ $params->chassis_no }} | 車名 | {{ $params->vehicle_name }} | 登録番号 | {{ $params->register_no }} | 完成日 | {{ empty($params->completed_date) ? '' :$params->completed_date販売情報一覧 }} | 入力者 | {{ $params->input_charge_user }} | 担当者 | {{ \App\Service\UserService::getUserName($params->charge_user) }} | 走行距離 | {{ is_numeric($params->travel_distance) ? $params->travel_distance.'km' : '' }} |
---|
郵便番号 | {{ $params->post_code }} | 住所 | {{ $params->address }} | 電話番号 | {{ $params->tel }} | 型式 | {{ $params->model_first.''.$params->model_second }} | エンジン型式 | {{ $params->engine_model }} | 年式 | {{ $params->register_first_year }} | 次回車検日 | {{ $params->next_inspection_date }} |
---|
項目 | 数量 | 単価 | 金額 | 消費税 | 備考 | @php $total = 0; $tax_total = 0; @endphp @if(!is_null($addition)) @foreach($addition as $item)
---|---|---|---|---|---|
{{ $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).'円' : '' }} |
品名 | 税別 | 消費税 | 合計 |
---|---|---|---|
@php $title_field = 'fee_title'.sprintf('%02d', $index); $fee_field = 'fee'.sprintf('%02d', $index); $consumption_fee_field = 'consumption_fee'.sprintf('%02d', $index); $const_arr = $department == 'truck' ? 'fee_title_truck_bill' : 'fee_title_bill'; @endphp {{ (isset($params->$title_field) ? $params->$title_field : (isset($confirm_params[$title_field]) ? $confirm_params[$title_field] : config('const.'.$const_arr.'.'.$index)) ) }} | {{ ((isset($params->$fee_field) && !empty($params->$fee_field)) ? number_format($params->$fee_field) : '') }} | {{ ((isset($params->$consumption_fee_field) && !empty($params->$consumption_fee_field)) ? number_format($params->$consumption_fee_field) : '') }} | {{ !empty(intval(isset($params->$fee_field) ? $params->$fee_field : '') + intval(isset($params->$consumption_fee_field) ? $params->$consumption_fee_field : '')) ? number_format(intval(isset($params->$fee_field) ? $params->$fee_field : '') + intval(isset($params->$consumption_fee_field) ? $params->$consumption_fee_field : '')) : '' }} |
小計 | {{ !empty($total) ? number_format($total) : '' }} | ||
付帯費用 | {{ (is_object($params) && !empty($params->getTotalFee())) ? number_format($params->getTotalFee()).'円' : '' }} | ||
合計 | {{ (is_object($params) && !empty($params->getTotalFee() + $tax_total + $total)) ? number_format($params->getTotalFee() + $tax_total + $total).'円' : '' }} |
付帯費用 | |||
---|---|---|---|
@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 | @if($index % 2 == 0)||
付帯費用合計 | {{ !empty($total_fee) ? number_format($total_fee).'円' : '' }} | ||
見積合計 | {{ !empty($tax_total + $total +$total_fee ) ? number_format($tax_total + $total +$total_fee).'円' : '' }} |
承認 | {{ config('const.estimate_print_status_lang.'.$params['is_agree']) }} |
---|