作業内容

@if ($department == 'moritis') @endif @if($department == "parts") @endif @if ($department == "parts") @endif @if($department == "moritis") @endif @if ($department == 'moritis') @endif @php $total = 0; $parts_res = 0; $tec_res = 0; @endphp @if (is_object($contents) && $contents->count() > 0) @foreach ($contents as $content) @if ($department == 'moritis') @endif @if($department == 'parts') @endif @if ($department == "parts") @else @if ($department == "moritis") @endif @endif @if ($department == 'moritis') @endif @if ($content->work_kind == config('const.content_work_kind.out_work') || $content->work_kind == config('const.content_work_kind.out_parts')) @else @endif @endforeach @endif
種別作業コード管理番号作業内容区分区分数量 単位 単価 小計レス原単価 原価小計 依頼先 請求
{{ isset($content->work->name) ? $content->work->name : '' }} {{ isset($content->process->work_code) ? $content->process->work_code : '' }} {{ $content->manager_no }} @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 {{ config('const.order_class.'.$content->class) }} {{ config('const.order_class.'.$content->class) }} {{ !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 {{ !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) }} {{ isset($content->requester_company->company_name1) ? $content->requester_company->company_name1 : '' }} {{ \App\Models\Masters\VehicleBase::findById($content->requester, 'name') }} {{ 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'))

$params->partner_id]) }}">外注仕入

@endif
@php $total_fee = 0; @endphp @foreach(range(1, 12) as $index) @if($index % 2 == 0) @endif @endforeach @if($department == 'parts' || $department == 'moritis') @endif @if($department == 'parts' || $department == 'moritis') @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
技術料

{{ 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).'円' : '' }}

画像登録

@if(is_object($attachments) && $attachments->count() > 0) @foreach($attachments as $attachment) @endforeach @endif
画像{{ $loop->index + 1 }}:
@if(isset($attachment->att_file_path) && isset($params->id) && Storage::disk('bill')->has($params->id.'/'.$attachment->att_file_path)) @elseif(Storage::disk('temp')->has($attachment->att_file_path)) @endif
{{ isset($attachment->note) ? $attachment->note : '' }}