@extends('backend.layouts.app') @section('content')
伝票種別 | {{ config('const.work_reception_document.'.(isset($params['print_type']) ? $params['print_type'] : '')) }} |
---|
受付日 | {{ isset($params['input_date']) ? Carbon::parse($params['input_date'])->format('Y.m.d') : "" }} | 売上日 | {{ isset($params['sale_date']) ? Carbon::parse($params['sale_date'])->format('Y.m.d') : "" }} | 伝票番号 | {{ isset($params['reception_no']) ? $params['reception_no'] : '' }} | 入力者 | {{ isset($params['input_charge_user']) ? $params['input_charge_user'] : "" }} | 担当者 | {{ isset($params['charge_user']) ? (is_object(App\Models\User::find($params['charge_user'])) ? App\Models\User::find($params['charge_user'])->name_kanji : '') : "" }} | 完成予定日 |
{{ isset($params['completed_date']) ? Carbon::parse($params['completed_date'])->format('Y.m.d') : "" }}
|
顧客名 |
{{ isset($params['partner_code']) ? $params['partner_code'].'-' : "" }}
{{ isset($params['partner_name']) ? $params['partner_name'] : "" }}
|
請求先 | {{ isset($params['bill_dest_code']) ? $params['bill_dest_code'].'-' : "" }} {{ isset($params['bill_dest_name']) ? $params['bill_dest_name'] : "" }} | 登録番号 | {{ $params['register_no'] }} | 初年度登録 | {{ \App\Helper\SystemHelper::convertGtJYeaMonth($params['year_type_y'], $params['year_type_m']) }} | 形状 | {{ $params['vehicle_shape'] }} | 車台番号 | {{ $params['chassis_no'] }} | 入庫日 |
{{ isset($params['reception_input_date']) ? Carbon::parse($params['reception_input_date'])->format('Y.m.d') : "" }}
|
入庫時走行距離 | {{ (isset($params['travel_distance']) && is_numeric($params['travel_distance'])) ? number_format($params['travel_distance']).'km' : "" }} | 出庫日 | {{ isset($params['output_date']) ? Carbon::parse($params['output_date'])->format('Y.m.d') : "" }} |
---|
受付時在庫場所 | {{ isset($params['vehicle_status']) ? (is_numeric($params['vehicle_status']) ? \App\Models\Masters\VehicleShed::findById($params['vehicle_status'], 'name') : $params['vehicle_status']) : '' }} | 顧客住所 | {{ isset($params['address']) ? $params['address'] : '' }} | 顧客電話番号 | {{ isset($params['tel']) ? $params['tel'] : '' }} | 車名 | {{ $params['vehicle_name'] }} | 型式 | {{ isset($params['model_first']) ? $params['model_first'].'-' : "" }}{{ isset($params['model_second']) ? $params['model_second'] : "" }} | エンジン型式 | {{ isset($params['engine_model']) ? $params['engine_model'] : "" }} | 車検証 |
@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(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(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_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
|
---|
保険顧客名 | {{ 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'] : "" }} | 免責金額 | {{ isset($params['deductible']) ? (is_numeric($params['deductible']) ? number_format($params['deductible']) : $params['deductible']) : "" }} | コメント | {{ isset($params['comment']) ? $params['comment'] : "" }} |
---|
備考 | {!! nl2br(isset($params['reception_note']) ? $params['reception_note'] : '') !!} |
---|
種別 | @if ($department == 'moritis')作業コード | @endif作業内容 | @if ($department == "parts")部品コード | 区分 | @endif @if($department == "moritis")区分 | @endif数量 | @unless($department == 'moritis' || $department == 'truck')単位 | @endunless単価 | 小計 | レス | 原単価 | 原価小計 | 依頼先 | 請求 | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ isset($content['work_kind']) ? App\Models\Masters\WorkKind::findById($content['work_kind'], 'name') : '' }} | @if ($department == 'moritis'){{ isset($content['work_code_name']) ? ($content['work_code_name']) : '' }} | @endif @if ($department == 'parts'){{ $content['manager_no'] }} | @endif @if (isset($content['work_kind']) && $content['work_kind'] == 1 && isset($content['work_sub_category']) && is_numeric($content['work_sub_category']))@php $category_name = App\Models\Masters\WorkSubCategory::findById($content['work_sub_category'], 'name'); $l_index = strpos($category_name, '('); @endphp @if($l_index) @php $l_index = strpos($category_name, '('); $code_name1 = substr($category_name, 0, $l_index); $code_name2 = substr($category_name, $l_index); @endphp {{ "【".$code_name1."】" }}{{$code_name2}} @else {{ "【".$category_name."】" }} @endif | @else{{ isset($content['work_sub_category']) ? ($content['work_sub_category']) : '' }} | @endif @if ($department == "moritis" || $department == "parts"){{ isset($content['class']) ? config('const.order_class.'.$content['class']) : '' }} | @endif{{ $content['quantity'] }} | @unless($department == 'moritis' || $department == 'truck'){{ isset($content['unit']) ? $content['unit'] : '' }} | @endunless{{ !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'] @endphp | {{ !is_numeric($content['response']) ? '' : number_format($content['response']) }} | {{ !is_numeric($content['original_unit_price']) ? '' : number_format($content['original_unit_price']) }} | {{ !is_numeric($content['total']) ? '' : number_format($content['total']) }} | @if (in_array($content['work_kind'], config('const.content_out_work')))
{{ isset($content['requester']) ? App\Models\OutPartner\OutPartner::findById($content['requester'], 'company_name1').' '.App\Models\OutPartner\OutPartner::findById($content['requester'], 'company_name2') : '' }} {{ \App\Service\UserService::getUserName(isset($content['charger']) ? $content['charger'] : '') }} |
@else
{{ isset($content['requester']) ? \App\Models\Masters\VehicleBase::findById($content['requester'], 'name') : '' }}
@if(isset($content['work_kind']) &&( $content['work_kind'] == config('const.content_work_kind.work') || $content['work_kind'] == config('const.content_work_kind.parts')))
{{ \App\Service\UserService::getUserName(isset($content['charger']) ? $content['charger'] : '') }} @endif |
@endif
{{ isset($content['accept_bill']) ? config('const.accept_bill.'.$content['accept_bill']) : '' }} |
{{ $index < 10 ? (isset($params['fee_title0'.$index]) ? $params['fee_title0'.$index] : '') : (isset($params['fee_title'.$index]) ? $params['fee_title'.$index] : '') }} {{ ($index < 10 ? (isset($params['fee_type0'.$index]) ? $params['fee_type0'.$index] : '') : (isset($params['fee_type'.$index]) ? $params['fee_type'.$index] : '')) ? '*' : '' }} | @php $fee = ($index < 10 ? (isset($params['fee0'.$index]) ? $params['fee0'.$index] : '') : (isset($params['fee'.$index]) ? $params['fee'.$index] : '')); @endphp {{ is_numeric($fee) ? number_format($fee) : '' }} | @if($index % 2 == 0)
---|---|
作業 | 外注作業 | 作業値引 | 作業代計 | |||
---|---|---|---|---|---|---|
売上(税抜) | ||||||
原価 | ||||||
粗利 | ||||||
部品 | 外注部品 | 在庫部品 | 部品値引 | 部品代計 | 整備小計 | |
売上(税抜) | ||||||
原価 | ||||||
粗利 |
作業代 | 部品代 | 消費税 | 整備合計 | 諸費用(非課税) | 諸費用(課税) | 諸費用消費税 | 諸費用合計 | 預り金 | 調整値引き | 請求合計 |
---|---|---|---|---|---|---|---|---|---|---|
画像{{ $loop->index + 1 }}: |
@if (isset($attachment['att_file_path']) && Storage::disk('temp')->has($attachment['att_file_path']))
{{ isset($attachment['note']) ? $attachment['note'] : '' }}
|
---|