伝票番号 | {{ $params->reception_no }} | 顧客名 |
{{ isset($params->partner->partner_code) ? $params->partner->partner_code : "" }}
-
{{ isset($params->partner_name) ? $params->partner_name : "" }}
|
請求先 |
{{ isset($params->bill_dest_name) ? $params->bill_dest_name : "" }} |
車台番号 | {{ $params->chassis_no }} | 車名 | {{ $params->vehicle_name }} | 登録番号 | {{ $params->register_no }} | 入庫日付 | {{ isset($params->input_date) ? Carbon::parse($params->input_date)->format('Y.m.d') : "" }} | 出庫日付 | {{ isset($params->output_date) ? Carbon::parse($params->output_date)->format('Y.m.d') : "" }} | 完成日 |
{{ isset($params->completed_date) ? Carbon::parse($params->completed_date)->format('Y.m.d') : "" }}
{{ config('const.month_section.'.$params->completed_month) }} |
支払期日 | {{ isset($params->payment_date) ? Carbon::parse($params->payment_date)->format('Y.m.d') : "" }} | 入力者 | {{ isset($params->input_user->name_kanji) ? $params->input_user->name_kanji : "" }} | 担当者 | {{ isset($params->charger->name_kanji) ? $params->charger->name_kanji : "" }} | 在庫場所 | {{ \App\Service\Masters\VehicleShedService::getShedNameByID($params->vehicle_status) }} | 作業ステータス | {{ config('const.moritis_work_status.'.$params->work_status) }} | 走行距離 | {{ isset($params->travel_distance) ? (number_format($params->travel_distance).'km') : "" }} | @if(strpos(Request::url(), 'work_reception'))車検証 |
@php
$file_path = (isset($params->vehicle_verify_pdf_path) ? $params->vehicle_verify_pdf_path : null);
$file_name = (isset($params->vehicle_verify_pdf_name) ? $params->vehicle_verify_pdf_name : null);
@endphp
@if(!empty($file_path))
@if(isset($params->id) && Storage::disk('work_reception')->has($params->id.'/'.$file_path))
{{ $file_name }}
@endif
@endif
|
ご依頼内容 |
@php
$file_path = (isset($params->vehicle_question_pdf_path) ? $params->vehicle_question_pdf_path : null);
$file_name = (isset($params->vehicle_question_pdf_name) ? $params->vehicle_question_pdf_name : null);
@endphp
@if(!empty($file_path))
@if(Storage::disk('temp')->has($file_path))
{{ $file_name }}
@elseif(isset($params->id) && Storage::disk('work_reception')->has($params->id.'/'.$file_path))
{{ $file_name }}
@endif
@endif
|
チェックシート |
@php
$file_path = (isset($params->vehicle_checksheet_pdf_path) ? $params->vehicle_checksheet_pdf_path : null);
$file_name = (isset($params->vehicle_checksheet_pdf_name) ? $params->vehicle_checksheet_pdf_name : null);
@endphp
@if(!empty($file_path))
@if(isset($params->id) && Storage::disk('work_reception')->has($params->id.'/'.$file_path))
{{ $file_name }}
@endif
@endif
|
@endif
---|
備考 |
---|
郵便番号 | {{ isset($params->post_code) ? $params->post_code : "" }} | 住所 | {{ isset($params->address) ? $params->address : "" }} | 電話番号 | {{ isset($params->tel) ? $params->tel : "" }} | 型式 | {{ isset($params->model_first) ? $params->model_first.'-' : "" }}{{ isset($params->model_second) ? $params->model_second : "" }} | エンジン型式 | {{ isset($params->engine_model) ? $params->engine_model : "" }} | {{--車両種別 | {{ isset($params->vehicle_type) ? $params->vehicle_type : "" }} | --}}初年度登録 | {{ isset($params->register_first_year) ? $params->register_first_year : "" }} | 次回車検日 | {{ isset($params->next_inspection_date) ? $params->next_inspection_date : "" }} |
---|
保険顧客名 | {{ isset($params->insurance_company_name) ? $params->insurance_company_name : "" }} | 事故日 | {{ isset($params->accident_date) ? $params->accident_date : "" }} | 事故種別 | {{ isset($params->accident_type) ? $params->accident_type : "" }} | 事故内容 | {{ isset($params->accident_content) ? $params->accident_content : "" }} | 免責金額 | {{ is_numeric($params->deductible) ? number_format($params->deductible) : $params->deductible }} | コメント | {{ isset($params->comment) ? $params->comment : "" }} |
---|
種別 | @if ($department == 'moritis')作業コード | @endif @if($department == "parts")管理番号 | @endif作業内容 | @if ($department == "parts")区分 | @endif @if($department == "moritis")区分 | @endif数量 | 単位 | 単価 | 小計 | @if ($department == 'moritis')レス | @endif原単価 | 原価小計 | 依頼先 | 請求 | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ isset($content->work->name) ? $content->work->name : '' }} | @if ($department == 'moritis'){{ isset($content->process->work_code) ? $content->process->work_code : '' }} | @endif @if($department == 'parts'){{ $content->manager_no }} | @endif@if (isset($content->sub_category->name) && $content->work_kind == config('const.content_work_kind.main_work')) @php $l_index = strpos($content->sub_category->name, '('); @endphp @if($l_index) @php $l_index = strpos($content->sub_category->name, '('); $code_name1 = substr($content->sub_category->name, 0, $l_index); $code_name2 = substr($content->sub_category->name, $l_index); @endphp {{ "【".$code_name1."】" }}{{$code_name2}} @else {{ "【".$content->sub_category->name."】" }} @endif @else {{ $content->work_sub_category }} @endif | @if ($department == "parts"){{ config('const.order_class.'.$content->class) }} | @else @if ($department == "moritis"){{ config('const.order_class.'.$content->class) }} | @endif @endif{{ !is_numeric($content->quantity) ? '' : $content->quantity }} | {{ $content->unit }} | {{ !is_numeric($content->unit_price) ? '' : number_format($content->unit_price) }} | {{ !is_numeric($content->sub_total) ? '' : number_format($content->sub_total) }} @php $total += $content->sub_total; if(in_array($content->work_kind, config('const.content_parts'))){ $parts_res += $content->sub_total * intval($content->response) / 100; } if(in_array($content->work_kind, config('const.content_technical'))){ $tec_res += $content->sub_total * intval($content->response) / 100; } @endphp | @if ($department == 'moritis'){{ !is_numeric($content->response) ? '' : number_format($content->response) }} | @endif{{ !is_numeric($content->original_unit_price) ? '' : number_format($content->original_unit_price) }} | {{ !is_numeric($content->total) ? '' : number_format($content->total) }} | @if ($content->work_kind == config('const.content_work_kind.out_work') || $content->work_kind == config('const.content_work_kind.out_parts')){{ isset($content->requester_company->company_name1) ? $content->requester_company->company_name1 : '' }} | @else{{ \App\Models\Masters\VehicleBase::findById($content->requester, 'name') }} | @endif{{ config('const.accept_bill.'.$content->accept_bill) }} | @if ($content->work_kind == config('const.content_work_kind.out_work') && $content->work_kind == config('const.content_work_kind.out_parts')) | @endif
付帯費用 | |||
---|---|---|---|
@php $title_field = 'fee_title'.sprintf('%02d', $index); $fee_field = 'fee'.sprintf('%02d', $index); @endphp {{ $params->$title_field }} | {{ is_numeric($params->$fee_field ) ? number_format($params->$fee_field ) : ''}} @php $total_fee += intval($params->$fee_field); @endphp | @if($index % 2 == 0)||
技術料 |
{{ empty($params->technical_fee) ? '' : number_format($params->technical_fee).'円' }} |
||
技術料値引 |
{{ empty($tec_res) ? '' : number_format($tec_res).'円' }} |
||
部品金額 |
{{ empty($params->parts_fee) ? '' : number_format($params->parts_fee).'円' }} |
||
部品値引 |
{{ empty($parts_res) ? '' : number_format($parts_res).'円' }} |
||
付帯費用 |
{{ !empty($total_fee) ? number_format($total_fee).'円' : '' }} |
||
見積合計 |
{{ !empty($total + $total_fee) ? number_format($total + $total_fee).'円' : '' }} |
画像{{ $loop->index + 1 }}: |
@if(isset($attachment->att_file_path) && isset($params->id) && Storage::disk('bill')->has($params->id.'/'.$attachment->att_file_path))
{{ isset($attachment->note) ? $attachment->note : '' }}
|
---|