@php $page_count = 1; $department = Session::get('department'); @endphp @if(is_object($params) && $params->group_content->count() > 0) @foreach($params->group_content as $key => $group_content) @php $page_count = 1; $contents = $group_content->ob_contents; $total_page = ceil(count($contents)/30); $total_page = $total_page == 0 ? 1 : $total_page; @endphp
発行日:{{ Carbon::now()->format('Y').'年'.sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
作業依頼書(UJ)
依頼先
{{ ($department != "parts" && $department !== "truck") ? "株式会社" : '' }}{{ (isset($contents[0]) && is_object($contents[0]) && is_object($contents[0]->requester_base)) ? $contents[0]->requester_base->name : '' }} {{ config('const.honorific_type.1') }}
コード:{{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_code.'.$contents[0]->requester) : '' }}
TEL:{{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_tel.'.$contents[0]->requester) : '' }} FAX:{{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_fax.'.$contents[0]->requester) : '' }}
住所 {{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_address.'.$contents[0]->requester) : '' }}
{{ config('const.group_branch.'.(config('const.system_parts_prefix.'.$group_content->system_parts))) }}
拠点名:{{ is_object($group_content->ob_requester) ? $group_content->ob_requester->name : '' }}
住所:{{ config('const.vehicle_base_address.'.$group_content->requester) }}
TEL:{{ config('const.vehicle_base_tel.'.$group_content->requester) }}
FAX:{{ config('const.vehicle_base_fax.'.$group_content->requester) }}
※納品書及び請求書には必ず下記の伝票番号の記載をお願い致します。
お客様名 依頼日 伝票番号

{{ $params->getPartnerNameForPrint() }}

{{ !empty($params->input_date) ? Carbon::parse($params->input_date)->format('Y年n月j日') : '' }} {{ $group_content->reception_no }} {{ $page_count }}/{{ $total_page }}
形状 登録番号 型式 車台番号
{{ isset($params->vehicle_shape) ? $params->vehicle_shape : '' }} {{ isset($params->register_no) ? $params->register_no : '' }} {{ is_object($params) ? $params->getVehicleModel() : '' }} {{ !is_object($params) ? '' : $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 }} {{ \App\Service\UserService::getUserName((empty($group_content->input_user) ? $params->input_charge_user : $group_content->input_user)) }} {{ \App\Service\UserService::getUserName((empty($group_content->reception_user) ? $params->charge_user : $group_content->reception_user)) }}
@php $column_count = 30; $real_count = 0; $sub_total = 0; $total = 0; @endphp @foreach($contents as $key => $content) @php $real_count++; $sub_total += $content->sub_total; $total += $content->total; @endphp @if($real_count == $column_count) @break @endif @endforeach @if($real_count < $column_count-1) @foreach(range($real_count, $column_count-1) as $index) @endforeach @endif
依頼内容 数量 単価 金額

@if(($key + 1) % 10 == 0) {{ ($key + 1) }} @endif {{ $content->work_sub_category }}

{{ empty($content->quantity) ? '' : $content->quantity }} {{ empty($content->original_unit_price) ? '' : number_format($content->original_unit_price) }} {{ empty($content->total) ? '' : number_format($content->total) }}
@if(($index+1) % 10 == 0) {{ $index+1 }} @endif
合計 {{ empty($total) ? '' : number_format($total) }}
責任者 依頼者
@while(count($contents) > $real_count) @php $page_count++; @endphp
発行日:{{ Carbon::now()->format('Y').'年'.sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
作業依頼書(UJ)
依頼先
{{ ($department != "parts" && $department !== "truck") ? "株式会社" : '' }}{{ (isset($contents[0]) && is_object($contents[0]) && is_object($contents[0]->requester_base)) ? $contents[0]->requester_base->name : '' }} {{ config('const.honorific_type.1') }}
コード:{{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_code.'.$contents[0]->requester) : '' }}
TEL:{{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_tel.'.$contents[0]->requester) : '' }} FAX:{{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_fax.'.$contents[0]->requester) : '' }}
住所 {{ (isset($contents[0]) && is_object($contents[0])) ? config('const.vehicle_base_address.'.$contents[0]->requester) : '' }}
{{ config('const.group_branch.'.(config('const.system_parts_prefix.'.$group_content->system_parts))) }}
拠点名:{{ is_object($group_content->ob_requester) ? $group_content->ob_requester->name : '' }}
住所:{{ config('const.vehicle_base_address.'.$group_content->requester) }}
TEL:{{ config('const.vehicle_base_tel.'.$group_content->requester) }}
FAX:{{ config('const.vehicle_base_fax.'.$group_content->requester) }}
※納品書及び請求書には必ず下記の伝票番号の記載をお願い致します。
お客様名 依頼日 伝票番号

{{ $params->getPartnerNameForPrint() }}

{{ !empty($params->input_date) ? Carbon::parse($params->input_date)->format('Y年n月j日') : '' }} {{ $group_content->reception_no }} {{ $page_count }}/{{ $total_page }}
形状 登録番号 型式 車台番号
{{ isset($params->vehicle_shape) ? $params->vehicle_shape : '' }} {{ isset($params->register_no) ? $params->register_no : '' }} {{ is_object($params) ? $params->getVehicleModel() : '' }} {{ !is_object($params) ? '' : $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 }} {{ \App\Service\UserService::getUserName((empty($group_content->input_user) ? $params->input_charge_user : $group_content->input_user)) }} {{ \App\Service\UserService::getUserName((empty($group_content->reception_user) ? $params->charge_user : $group_content->reception_user)) }}
@php $loop_count = 0; $sub_total = 0; $total = 0; @endphp @foreach($contents as $key => $content) @if($key >= $real_count) @php $real_count++; $loop_count++; $sub_total += $content->sub_total; $total += $content->total; @endphp @if($key == count($contents) - 1) @php $real_count++; @endphp @endif @if($loop_count == $column_count) @break @endif @endif @endforeach @if($loop_count < $column_count-1) @foreach(range($loop_count, $column_count-1) as $index) @endforeach @endif
依頼内容 数量 単価 金額

@if(($key + 1) % 10 == 0) {{ ($key + 1) }} @endif {{ $content->work_sub_category }}

{{ empty($content->quantity) ? '' : $content->quantity }} {{ empty($content->original_unit_price) ? '' : number_format($content->original_unit_price) }} {{ empty($content->total) ? '' : number_format($content->total) }}
@if(($index+1) % 10 == 0) {{ $index+1 }} @endif
合計 {{ empty($total) ? '' : number_format($total) }}
責任者 依頼者
@endwhile @endforeach @else
発行日:{{ Carbon::now()->format('Y').'年'.sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
作業依頼書(UJ)
依頼先
コード:
TEL: FAX:
住所 
拠点名:
住所:
TEL:
FAX:
※納品書及び請求書には必ず下記の伝票番号の記載をお願い致します。
お客様名 依頼日 伝票番号

{{ $params->getPartnerNameForPrint() }}

{{ !empty($params->input_date) ? Carbon::parse($params->input_date)->format('Y年n月j日') : '' }} 1/1
形状 登録番号 型式 車台番号
{{ isset($params->vehicle_shape) ? $params->vehicle_shape : '' }} {{ isset($params->register_no) ? $params->register_no : '' }} {{ is_object($params) ? $params->getVehicleModel() : '' }} {{ !is_object($params) ? '' : $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 }}
@php $column_count = 30; $real_count = 0; $sub_total = 0; $total = 0; @endphp @foreach(range(0, $column_count-1) as $index) @endforeach
依頼内容 数量 単価 金額
@if(($index+1) % 10 == 0) {{ $index+1 }} @endif
合計
責任者 依頼者
@endif