@php $page_count = 1; $border_color = '#e769d2'; $bg_color = '#f2def4'; @endphp @php $department = Session::get('department'); $bill_dest_name = $params->getBillDestNameForPrint(config('const.partner_name_print.first_name')); $partner_name = $params->getPartnerNameForPrint(); $font_size = config('const.partner_name_font_size.'.(strlen($bill_dest_name)/3)); $partner_font_size = config('const.partner_name_font_size.'.(strlen($partner_name)/3)); if(!$font_size) { $font_size = 14; } if(!$partner_font_size) { $partner_font_size = 12; } $total_page = ceil($params->getPrintableCount()/30); if($total_page == 0) { $total_page = 1; } @endphp
    受付表 発行日:{{ Carbon::now()->format('Y').'年'.sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
{{ $params->bill_post_code }}
住所 {{ $params->bill_dest_address }}
{{ $params->bill_dest_building_name }}

{{ $params->getBillDestNameForPrint(config('const.partner_name_print.first_name')) }}

{{ $params->getBillDestNameForPrint(config('const.partner_name_print.second_name')) }}

{{ 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 }}
@switch($department) @case('truck')
{{ config('const.work_reception_doc_title.'.$department) }}
口八女本社 〒834-0066 福岡県八女市室岡377-10
TEL:0943-24-1126 FAX:0943-24-4812
口福岡支店 〒813-0023 福岡県福岡市東区蒲田3-25-3
TEL:092-663-2588 FAX:092-663-6288
口埼玉支店 〒349-1125 埼玉県久喜市高柳1588-1
TEL:0480-53-8110 FAX:0480-53-8120
@break @case('parts')
{{ config('const.work_reception_doc_title.'.$department) }}
株式会社ウシパーツ
口本社
〒834-0121 福岡県八女郡広川町広川1090-38
TEL:0943-24-9539 FAX:0943-24-9540
@break @case('moritis')
{{ config('const.work_reception_doc_title.'.$department) }}
株式会社モリティス
口本社
〒834-0121 福岡県八女郡広川町広川1090-21
TEL:0943-24-9517 FAX:0943-24-9518
@break @case('rental')
{{ config('const.work_reception_doc_title.'.$department) }}
口福岡インター店
〒813-0023 福岡県福岡市東区蒲田3-25-3
TEL:092-663-2500 FAX:092-663-6288
口埼玉久喜店
〒349-1125 埼玉県久喜市高柳1588-1
TEL:0480-53-8110 FAX:0480-53-8120
@break @case('lease')
{{ config('const.work_reception_doc_title.'.$department) }}
□福岡OFFICE
〒812-0038 福岡県福岡市博多区祇園町8-13-1F
TEL:0120-961-951 FAX:092-510-7550
@break @endswitch

コード:{{ is_object($params->bill_dest) ? $params->bill_dest->partner_code : '' }}

お客様名 受付日 伝票番号
{{ $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->model_first.'-'.$params->model_second }} {{ $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 $department = Session::get('department'); $content_count = 30; $real_count = 0; $total = 0; $parts_fee = null; $tec_fee = null; @endphp @foreach($params->printable_content as $key => $content) @if($content->work_kind == config('const.content_work_kind.main_work') && isset($content->sub_category->name)) @php $work_length = mb_strlen($content->sub_category->UJName(true)); $work_encode = 'UTF-8'; @endphp @else @php $work_length = (isset($content->work_sub_category) ? strlen($content->work_sub_category) : 0); $work_encode = isset($content->work_sub_category) ? mb_detect_encoding($content->work_sub_category) : ''; @endphp @endif @if (in_array($content->work_kind, config('const.content_out_work'))) @else @endif @php $real_count++; @endphp @if($real_count == $content_count) @break @endif @php @endphp @endforeach @if($real_count < $content_count) @foreach(range($real_count + 1, $content_count) as $index) @endforeach @endif
種別 作業内容 依頼先
@if(($real_count + 1) % 10 == 0) {{ ($real_count + 1) }} @endif {{ isset($content->work->name) ? $content->work->name : '' }} {{ $content->sub_category->UJName(true) }} {{ (isset($content->work_sub_category) ? $content->work_sub_category : '') }} {{ isset($content->requester_company->company_name1) ? $content->requester_company->getFullName() : '' }} {{ \App\Models\Masters\VehicleBase::findById($content->requester, 'name') }}
@if($index % 10 == 0) {{ $index }} @endif
@if(isset($params->id) ) @while($params->getPrintableCount() > $real_count) @php $page_count ++; @endphp
    受付表 発行日:{{ Carbon::now()->format('Y').'年'.sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
{{ $params->bill_post_code }}
住所 {{ $params->bill_dest_address }}
{{ $params->bill_dest_building_name }}

{{ $params->getBillDestNameForPrint(config('const.partner_name_print.first_name')) }}

{{ $params->getBillDestNameForPrint(config('const.partner_name_print.second_name')) }}

{{ 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 }}
@switch($department) @case('truck')
{{ config('const.work_reception_doc_title.'.$department) }}
口八女本社 〒834-0066 福岡県八女市室岡377-10
TEL:0943-24-1126 FAX:0943-24-4812
口福岡支店 〒813-0023 福岡県福岡市東区蒲田3-25-3
TEL:092-663-2588 FAX:092-663-6288
口埼玉支店 〒349-1125 埼玉県久喜市高柳1588-1
TEL:0480-53-8110 FAX:0480-53-8120
@break @case('parts')
{{ config('const.work_reception_doc_title.'.$department) }}
株式会社ウシパーツ
口本社
〒834-0121 福岡県八女郡広川町広川1090-38
TEL:0943-24-9539 FAX:0943-24-9540
@break @case('moritis')
{{ config('const.work_reception_doc_title.'.$department) }}
株式会社モリティス
口本社
〒834-0121 福岡県八女郡広川町広川1090-21
TEL:0943-24-9517 FAX:0943-24-9518
@break @case('rental')
{{ config('const.work_reception_doc_title.'.$department) }}
口福岡インター店
〒813-0023 福岡県福岡市東区蒲田3-25-3
TEL:092-663-2500 FAX:092-663-6288
口埼玉久喜店
〒349-1125 埼玉県久喜市高柳1588-1
TEL:0480-53-8110 FAX:0480-53-8120
@break @case('lease')
{{ config('const.work_reception_doc_title.'.$department) }}
□福岡OFFICE
〒812-0038 福岡県福岡市博多区祇園町8-13-1F
TEL:0120-961-951 FAX:092-510-7550
@break @endswitch

コード:{{ is_object($params->bill_dest) ? $params->bill_dest->partner_code : '' }}

お客様名 受付日 伝票番号
{{ $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->model_first.'-'.$params->model_second }} {{ $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 $department = Session::get('department'); $content_count = 30; $total = 0; $loop_count = 0; @endphp @foreach($params->printable_content as $key => $content) @if($key < $real_count) @continue @endif @php if($content->work_kind == config('const.content_work_kind.main_work') && isset($content->sub_category->name)){ $l_index = strpos($content->sub_category->name, '('); if($l_index){ $code_name1 = substr($content->sub_category->name, 0, $l_index); $code_name2 = substr($content->sub_category->name, $l_index); } else { $code_name1 = $content->sub_category->name; $code_name2 = ''; } } @endphp @if($content->work_kind == config('const.content_work_kind.main_work') && isset($content->sub_category->name)) @php $work_length = strlen($content->sub_category->UJName(true)); $work_encode = 'UTF-8'; @endphp @else @php $work_length = (isset($content->work_sub_category) ? strlen($content->work_sub_category) : 0); $work_encode = isset($content->work_sub_category) ? mb_detect_encoding($content->work_sub_category) : ''; @endphp @endif @if (in_array($content->work_kind, config('const.content_out_work'))) @else @endif @php $total += $content->sub_total; if($department == 'parts' || $department == 'moritis'){ $total -= $content->sub_total * $content->response / 100; } if(in_array($content->work_kind, config('const.content_work_type')) && !is_null($content->sub_total)){ $tec_fee += $content->sub_total; } if(in_array($content->work_kind, config('const.content_parts')) && !is_null($content->sub_total)){ $parts_fee += $content->sub_total; } $real_count++; $loop_count++; @endphp @if($loop_count == $content_count) @break @endif @endforeach @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 {{ isset($content->work->name) ? $content->work->name : '' }} {{ (isset($content->sub_category->name) && $content->work_kind == config('const.content_work_kind.main_work')) ? '【'.$code_name1.'】' : '' }}{{ $code_name2 }}{{ (isset($content->work_sub_category) ? $content->work_sub_category : '') }} {{ isset($content->requester_company->company_name1) ? $content->requester_company->getFullName() : '' }} {{ \App\Models\Masters\VehicleBase::findById($content->requester, 'name') }}
@if($index % 10 == 0) {{ $index }} @endif
@endwhile @endif