@php $page_count = 1; $total_page = ceil($params->getPrintableCount()/30); if($total_page == 0) { $total_page = 1; } @endphp
作業指示書 整1課 | 整2課 | 架1課 | 架2課
発行日 : {{ \App\Helper\SystemHelper::convertGtJDate(Carbon::now()->format('Y')) }}{{ sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
請求先名 連絡先
{{ $params->getBillDestNameForPrint() }} {{ config('const.honorific_type.'.( !empty($params->bill_dest_honorific_type) ? $params->bill_dest_honorific_type : config('const.honorific_type_code.you'))) }} TEL:{{ $params->bill_dest_tel }} FAX:{{ $params->bill_dest_fax }}
お客様名 依頼日 伝票番号
{{ $params->getPartnerNameForPrint() }}{{ config('const.honorific_type.'.( !empty($params->partner_honorific_type) ? $params->partner_honorific_type : config('const.honorific_type_code.mr'))) }} {{ empty($params->input_date) ? '' : Carbon::parse($params->input_date)->format('Y年n月j日') }} {{ $params->reception_no }} {{ $page_count }}/{{ $total_page }}
形状 登録番号 型式 車台番号
{{ $params->vehicle_shape }} {{ $params->register_no }} {{ $params->getVehicleModel() }} {{ $params->chassis_no }}
車名 初年度登録 原動機型式 入力者 担当者
{{ is_object($params) ? $params->vehicle_name : '' }} {{ isset($params->year_type_y) ? \App\Helper\SystemHelper::convertGtJYeaMonth($params->year_type_y, $params->year_type_m) : '' }} {{ $params->engine_model }} {{ is_object($params->input_user) ? $params->input_user->name_kanji : '' }} {{ is_object($params->charger) ? $params->charger->name_kanji : '' }}
備考

@php if(isset($params->reception_note)) echo nl2br($params->reception_note); @endphp

@php $real_count = 0; $content_count = 30; @endphp @if(isset($params->content)) @foreach($params->printable_content as $key => $content) @php $real_count++; @endphp @if($real_count == $content_count) @break @endif @endforeach @endif @if($real_count < $content_count) @foreach(range($real_count+1, $content_count) as $index) @endforeach @endif
指示内容 作業者 作業日 工数 作業内容・使用部品
@if(($key + 1) % 10 == 0) {{ ($key + 1) }} @endif @if($content->work_kind == config('const.content_work_kind.main_work')) @if(is_object($content->sub_category)) {{ $content->sub_category->UJName(true) }} @endif @else {{ $content->work_sub_category }} @endif
@if(($index) % 10 == 0) {{ $index }} @endif
@if(isset($params->id)) @while($params->getPrintableCount() > $real_count) @php $page_count++; @endphp
作業指示書 整1課 | 整2課 | 架1課 | 架2課
発行日 : {{ \App\Helper\SystemHelper::convertGtJDate(Carbon::now()->format('Y')) }}{{ sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
請求先名 連絡先
{{ $params->getBillDestNameForPrint() }} {{ config('const.honorific_type.'.( !empty($params->bill_dest_honorific_type) ? $params->bill_dest_honorific_type : config('const.honorific_type_code.you'))) }} TEL:{{ $params->bill_dest_tel }} FAX:{{ $params->bill_dest_fax }}
お客様名 依頼日 伝票番号
{{ $params->getPartnerNameForPrint() }}{{ config('const.honorific_type.'.( !empty($params->partner_honorific_type) ? $params->partner_honorific_type : config('const.honorific_type_code.mr'))) }} {{ empty($params->input_date) ? '' : Carbon::parse($params->input_date)->format('Y年n月j日') }} {{ $params->reception_no }} {{ $page_count }}/{{ $total_page }}
形状 登録番号 型式 車台番号
{{ $params->vehicle_shape }} {{ $params->register_no }} {{ $params->getVehicleModel() }} {{ $params->chassis_no }}
車名 初年度登録 原動機型式 入力者 担当者
{{ is_object($params) ? $params->vehicle_name : '' }} {{ isset($params->year_type_y) ? \App\Helper\SystemHelper::convertGtJYeaMonth($params->year_type_y, $params->year_type_m) : '' }} {{ $params->engine_model }} {{ is_object($params->input_user) ? $params->input_user->name_kanji : '' }} {{ is_object($params->charger) ? $params->charger->name_kanji : '' }}
備考

@php if(isset($params->reception_note)) echo nl2br($params->reception_note); @endphp

@php $loop_count = 0; $content_count = 30; @endphp @if(isset($params->content)) @foreach($params->printable_content as $key => $content) @if($key < $real_count) @continue @endif @php $loop_count++; $real_count++; @endphp @if($loop_count == $content_count) @break @endif @endforeach @endif @if($loop_count < $content_count) @foreach(range($loop_count + 1, $content_count) as $index) @endforeach @endif
指示内容 作業者 作業日 工数 作業内容・使用部品
@if(($loop_count + 1) % 10 == 0) {{ ($loop_count + 1) }} @endif @if($content->work_kind == config('const.content_work_kind.main_work')) @if(is_object($content->sub_category)) {{ $content->sub_category->UJName(true) }} @endif @else {{ $content->work_sub_category }} @endif
@if(($index) % 10 == 0) {{ $index }} @endif
@endwhile @endif