@extends('backend.layouts.app') @section('content')
伝票種別 | {{ config('const.work_reception_document.'.($params->print_type)) }} |
---|
種別 | @if ($department == 'moritis')作業コード | @endif作業内容 | @if ($department == "parts")部品コード | 区分 | @endif @if($department == "moritis")区分 | @endif数量 | 単位 | @if (Auth::guard("admin")->user()->canShowReceptionPrice() || $params->canShowVehicleWork($department))単価 | 小計 | レス | 原単価 | 原価小計 | @endif依頼先 | 請求 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ isset($content->work->name) ? $content->work->name : '' }} | @if ($department == 'moritis'){{ isset($content->process->work_code) ? $content->process->work_code : '' }} | @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"){{ $content->parts_code }} | {{ config('const.order_class.'.$content->class) }} | @else @if ($department == "moritis"){{ config('const.order_class.'.$content->class) }} | @endif @endif{{ $content_index ? $content->quantity : '' }} | {{ $content_index ? $content->unit : '' }} | @if (Auth::guard("admin")->user()->canShowReceptionPrice() || $params->canShowVehicleWork($department)){{ is_null($content->unit_price) ? '' : ($content_index ? number_format($content->unit_price) : '') }} | {{ is_null($content->sub_total) ? '' : ($content_index ? number_format($content->sub_total) : '') }} @php $total += $content->sub_total @endphp | {{ is_null($content->response) ? '' : ($content_index ? number_format($content->response) : '') }} | {{ is_null($content->original_unit_price) ? '' : ($content_index ? number_format($content->original_unit_price) : '') }} | {{ is_null($content->total) ? '' : ($content_index ? number_format($content->total) : '') }} | @endif @if (in_array($content->work_kind, config('const.content_out_work')))
{{ (isset($content->requester_company->company_name1) && $content_index) ? $content->requester_company->getFullName() : '' }}
{{ (is_object($content->ob_charger) && $content_index) ? $content->ob_charger->name_kanji : '' }} |
@else
{{ $content_index ? \App\Models\Masters\VehicleBase::findById($content->requester, 'name') : '' }}
@if($content->work_kind == config('const.content_work_kind.work') || $content->work_kind == config('const.content_work_kind.parts'))
{{ (is_object($content->ob_charger) && $content_index) ? $content->ob_charger->name_kanji : '' }} @endif |
@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|||||||||||
@elseif($department == "parts") | @else | @endif | 技術料 | {{ !is_numeric($params->technical_fee) ? '' : number_format($params->technical_fee) }} | @if ($department == "parts") | @endif | |||||||||||||||||||||
@elseif($department == "parts") | @else | @endif | 部品金額 | {{ !is_numeric($params->parts_fee) ? '' : number_format($params->parts_fee) }} | @if ($department == "parts") | @endif | |||||||||||||||||||||
@elseif($department == "parts") | @else | @endif | お見積額 | {{ !is_numeric($params->parts_fee + $params->technical_fee) ? '' : number_format($params->parts_fee + $params->technical_fee) }} | @if ($department == "parts") | @endif |
@php $title_field = 'fee_title'.sprintf('%02d', $index); $fee_field = 'fee'.sprintf('%02d', $index); $fee_type = 'fee_type'.sprintf('%02d', $index); @endphp {{ $params->$title_field }}{{ !empty($params->$fee_type) ? '*' : '' }} | {{ is_numeric($params->$fee_field ) ? number_format($params->$fee_field ) : ''}} @php $total_fee += intval($params->$fee_field); @endphp | @if($index % 2 == 0)
---|---|
作業 | 外注作業 | 作業値引 | 作業代計 | |||
---|---|---|---|---|---|---|
売上(税抜) | ||||||
原価 | ||||||
粗利 | ||||||
部品 | 外注部品 | 在庫部品 | 部品値引 | 部品代計 | 整備小計 | |
売上(税抜) | ||||||
原価 | ||||||
粗利 |
作業代 | 部品代 | 消費税 | 整備合計 | 諸費用(非課税) | 諸費用(課税) | 諸費用消費税 | 諸費用合計 | 預り金 | 調整値引き | 請求合計 |
---|---|---|---|---|---|---|---|---|---|---|
画像{{ $loop->index + 1 }}: |
@if(isset($attachment->id) && isset($attachment->att_file_path) && isset($params->id))
{{ isset($attachment->note) ? $attachment->note : '' }}
|
---|