受付番号 |
お客様名 |
仕入先名 |
{{ is_object($params) ? $params->reception_no : '' }} |
{{ isset($purchase->purchase_name) ? $purchase->purchase_name : '' }} |
{{ config('const.honorific_type.'.config('const.honorific_type_code.mr')) }} |
{{ isset($purchase->request_partner->id) ? $purchase->request_partner->getFullName(1) : '' }} |
{{ config('const.honorific_type.'.((isset($purchase->request_partner->id) && !empty($purchase->request_partner->honorific_type)) ? $purchase->request_partner->honorific_type : config('const.honorific_type_code.you'))) }} |
(住所){{ isset($params->partner->id) ? $params->partner->getFullAddress() : '' }} |
納入場所{{ is_object($params) ? \App\Models\Masters\VehicleShed::findById($params->vehicle_status, 'name') : '' }} |
車台番号 |
登録番号 |
エンジン型式 |
走行距離 |
初年度登録日 |
納入期日 |
{{ isset($purchase->vehicle->vehicle_info_basic->chassis_no) ? $purchase->vehicle->vehicle_info_basic->chassis_no : '' }} |
{{ isset($purchase->vehicle->register_no) ? $purchase->vehicle->register_no : '' }} |
{{ isset($purchase->vehicle->vehicle_info_basic->engine_model) ? $purchase->vehicle->vehicle_info_basic->engine_model : '' }} |
{{ (isset($purchase->vehicle->vehicle_info_basic->rough_travel_distance) && !is_null($purchase->vehicle->vehicle_info_basic->rough_travel_distance)) ? number_format($purchase->vehicle->vehicle_info_basic->rough_travel_distance) : '' }}km |
{{ isset($purchase->vehicle->vehicle_info_basic->year_type_y) ? \App\Helper\SystemHelper::convertGtJYeaMonth($purchase->vehicle->vehicle_info_basic->year_type_y, $purchase->vehicle->vehicle_info_basic->year_type_m) : '' }} |
{{ is_object($params) ? (empty($params->output_date) ? '' : Carbon::parse($params->output_date)->format('Y年n月j日')) : '' }} |
作業CD |
位置 |
作業名 |
数量 |
工数 |
単価 |
代金 |
仮単価 |
@php
$real_count = 0;
$sub_total = 0;
$total = 0;
@endphp
@if(is_object($purchase) && is_object($purchase->content) && $purchase->content->count() > 0)
@foreach($purchase->content as $key => $content)
{{ (isset($content->work->name) && $key != 0) ? $content->work->name : '' }} |
|
{{ (isset($content->sub_category->name) && $content->work_kind == config('const.content_work_kind.main_work')) ? '【'.$content->sub_category->name.'】' : (isset($content->work_sub_category) ? Str::limit($content->work_sub_category, 60, '') : '') }} |
{{ empty($content->quantity) ? '' : $content->quantity }} |
|
{{ empty($content->unit_price) ? '' : number_format($content->unit_price) }} |
{{ empty($content->sub_total) ? '' : number_format($content->sub_total) }} |
{{ empty($content->original_unit_price) ? '' : number_format($content->original_unit_price) }} |
@if(($content->work_kind == config('const.content_work_kind.out_work') || $content->work_kind == config('const.content_work_kind.out_parts')) && $content->accept_bill == config('const.accept_bill_code.yes') || $key == 0)
@endif
@php
$real_count++;
$sub_total += $content->sub_total;
$total += is_numeric($content->total) ? $content->total : 0;
@endphp
@if($real_count == 36)
@break
@endif
@endforeach
@endif
@foreach(range($real_count, 35) as $index)
|
|
|
|
|
|
|
|
@endforeach
|
合計 |
{{ empty($sub_total) ? '' : number_format($sub_total) }} |
{{ empty($total) ? '' : number_format($total) }} |