@php $page_count = 1; @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
@switch($department) @case('truck') @case('rental') @break @case('parts') @break @case('moritis') @break @case('lease') @break @endswitch
発行日:{{ 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'))) }} {{ Carbon::parse($params->input_date)->format('Y/n/j') }} {{ !empty($params->sale_date) ? Carbon::parse($params->sale_date)->format('Y/n/j') : '' }} {{ $params->reception_no }} {{ $page_count }}/{{ $total_page }}
形状 登録番号 型式 車台番号
{{ $params->vehicle_shape }} {{ $params->register_no }} {{ $params->getVehicleModel() }} {{ Str::limit($params->chassis_no, 30, '') }}
車名 初年度登録 原動機型式 入力者 担当者
{{ 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 }} {{ isset($params->input_user->name_kanji) ? $params->input_user->name_kanji : '' }} {{ isset($params->charger->name_kanji) ? $params->charger->name_kanji : '' }}
@php $real_count = 0; $tec_fee = null; $parts_fee = null; $total_fee = 0; @endphp @foreach($params->printable_billing_content as $index => $content) @php $real_count++; if(!is_null($content->sub_total)) { $tec_fee += (in_array($content->work_kind, config('const.content_work_type')) ? $content->sub_total : null); $parts_fee += (in_array($content->work_kind, config('const.content_parts')) ? $content->sub_total : null); } $total_fee += $content->sub_total; @endphp @if($real_count == 30) @break @endif @endforeach @php $real_count++; @endphp @if($real_count < 30) @foreach(range($real_count, 30) as $index) @endforeach @php $tec_fee -= $params->getWorkResFee(); $parts_fee -= $params->getPartsResFee(); @endphp @endif @php $real_count--; @endphp
作業内容 技術料 物 品
数 量 単 価 金 額
@if(($real_count + 1) % 10 == 0) {{ ($real_count + 1) }} @endif {{ (isset($content->sub_category->name) && $content->work_kind == config('const.content_work_kind.main_work')) ? $content->sub_category->UJName(true) : Str::limit($content->work_sub_category, ($department == 'parts' ? 60 : 70), '') }}{{ $department == 'parts' ? $params->reception_no : '' }} {{ in_array($content->work_kind, config('const.content_work_type')) ? (is_null($content->sub_total) ? '' : number_format($content->sub_total)) : '' }} {{ ((in_array($content->work_kind, config('const.content_parts'))) && !is_null($content->quantity)) ? $content->quantity : '' }} {{ ((in_array($content->work_kind, config('const.content_parts'))) && !is_null($content->unit_price)) ? number_format($content->unit_price) : '' }} {{ in_array($content->work_kind, config('const.content_parts')) ? (!is_null($content->sub_total) ? number_format($content->sub_total) : '') : '' }}
@if($index % 10 == 0) {{ $index }} @endif {{ $loop->index == 0 ? (is_null($params->getWorkResFee()) ? '' : '技術料値引き') : ($loop->index == 1 ? (is_null($params->getPartsResFee()) ? '' : '部品代値引き') : '') }}
{{ $loop->index == 0 ? (is_null($params->getWorkResFee()) ? '' : '-'.number_format($params->getWorkResFee())) : '' }}
{{ $loop->index == 1 ? (is_null($params->getPartsResFee()) ? '' : '-'.number_format($params->getPartsResFee())) : '' }}
A {{ (!is_null($tec_fee) && $total_page == $page_count) ? number_format($tec_fee) : '' }} B {{ (!is_null($parts_fee) && $total_page == $page_count) ? number_format($parts_fee) : '' }}
お振込みの際は下記口座までお願いします
尚、お振込手数料については貴社にてご負担願います
西日本シティ銀行 {{ config("const.{$department}_bank_transfer_account.branch_name1") }}
福岡銀行 {{ config("const.{$department}_bank_transfer_account.branch_name2") }}
振込名義 カ){{ config("const.{$department}_bank_transfer_account.transfer_name") }}
@php $loop_count = 0; @endphp @foreach(range(1, 12) as $index) @php $title = 'fee_title'.sprintf('%02d', $index); $price = 'fee'.sprintf('%02d', $index); $type = 'fee_type'.sprintf('%02d', $index); @endphp @if(empty($params->$title) || empty($params->$price)) @continue @endif @php $loop_count++; @endphp @endforeach @if($loop_count < 9) @foreach(range($loop_count, 9) as $index) @if($loop_count == 0) @else @endif @endforeach @endif
{{ $params->$title }}{{ $params->$type ? '*' : '' }} {{ !empty($params->$price) ? number_format($params->$price) : '' }}
*は非課税
合計A+B
諸費用計
消費税10%


{{ (is_null($parts_fee) && is_null($tec_fee)) ? ' ' : ($total_page == $page_count ? number_format($parts_fee + $tec_fee) : ' ') }}
{{ is_null($params->getTotalFee(true)) ? ' ' : ($total_page == $page_count ? number_format($params->getTotalFee(true)) : ' ') }}
 {{ (is_null($parts_fee) && is_null($tec_fee) && is_null($params->getTotalBaseTax())) ? ' ' : ($total_page == $page_count ? number_format(round(($parts_fee + $tec_fee)/10) + $params->getTotalBaseTax()) : ' ') }}
御請求額 {{ ((is_null($parts_fee) && is_null($tec_fee) && is_null($params->getTotalFee()))) ? '' : ($total_page == $page_count ? number_format($params->getTotalFee() + $tec_fee + $parts_fee + round(($parts_fee + $tec_fee)/10)) : ' ') }}
E-1812
@if(isset($params->id)) @while($params->getPrintableCount() > $real_count) @php $page_count++; @endphp
@switch($department) @case('truck') @case('rental') @break @case('parts') @break @case('moritis') @break @case('lease') @break @endswitch
発行日:{{ 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'))) }} {{ Carbon::parse($params->input_date)->format('Y/n/j') }} {{ !empty($params->sale_date) ? Carbon::parse($params->sale_date)->format('Y/n/j') : '' }} {{ $params->reception_no }} {{ $page_count }}/{{ $total_page }}
形状 登録番号 型式 車台番号
{{ $params->vehicle_shape }} {{ $params->register_no }} {{ $params->getVehicleModel() }} {{ Str::limit($params->chassis_no, 30, '') }}
車名 初年度登録 原動機型式 入力者 担当者
{{ 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 }} {{ isset($params->input_user->name_kanji) ? $params->input_user->name_kanji : '' }} {{ isset($params->charger->name_kanji) ? $params->charger->name_kanji : '' }}
@php $total_fee = 0; $loop_count = 0; @endphp @foreach($params->printable_billing_content as $index => $content) @if($index >= $real_count) @php $real_count++; $loop_count++; if(!is_null($content->sub_total)) { $tec_fee += (in_array($content->work_kind, config('const.content_work_type')) ? $content->sub_total : null); $parts_fee += (in_array($content->work_kind, config('const.content_parts')) ? $content->sub_total : null); } $total_fee += $content->sub_total; @endphp @if($loop_count == 30) @break @endif @endif @endforeach @if($loop_count < 30) @foreach(range($loop_count+1, 30) as $index) @endforeach @php $tec_fee -= $params->getWorkResFee(); $parts_fee -= $params->getPartsResFee(); @endphp @endif
作業内容 技術料 物 品
数 量 単 価 金 額
@if(($loop_count + 1) % 10 == 0) {{ ($loop_count + 1) }} @endif {{ (isset($content->sub_category->name) && $content->work_kind == config('const.content_work_kind.main_work')) ? $content->sub_category->UJName(true) : Str::limit($content->work_sub_category, ($department == 'parts' ? 60 : 70), '') }}{{ $department == 'parts' ? $params->reception_no : '' }} {{ in_array($content->work_kind, config('const.content_work_type')) ? (is_null($content->sub_total) ? '' : number_format($content->sub_total)) : '' }} {{ ((in_array($content->work_kind, config('const.content_parts'))) && !is_null($content->quantity)) ? $content->quantity : '' }} {{ ((in_array($content->work_kind, config('const.content_parts'))) && !is_null($content->unit_price)) ? number_format($content->unit_price) : '' }} {{ in_array($content->work_kind, config('const.content_parts')) ? (!is_null($content->sub_total) ? number_format($content->sub_total) : '') : '' }}
@if($index % 10 == 0) {{ $index }} @endif {{ $loop->index == 0 ? (is_null($params->getWorkResFee()) ? '' : '技術料値引き') : ($loop->index == 1 ? (is_null($params->getPartsResFee()) ? '' : '部品代値引き') : '') }}
{{ $loop->index == 0 ? (is_null($params->getWorkResFee()) ? '' : '-'.number_format($params->getWorkResFee())) : '' }}
{{ $loop->index == 1 ? (is_null($params->getPartsResFee()) ? '' : '-'.number_format($params->getPartsResFee())) : '' }}
A {{ (!is_null($tec_fee) && $total_page == $page_count) ? number_format($tec_fee) : '' }} B {{ (!is_null($parts_fee) && $total_page == $page_count) ? number_format($parts_fee) : '' }}
お振込みの際は下記口座までお願いします
尚、お振込手数料については貴社にてご負担願います
西日本シティ銀行 {{ config("const.{$department}_bank_transfer_account.branch_name1") }}
福岡銀行 {{ config("const.{$department}_bank_transfer_account.branch_name2") }}
振込名義 カ){{ config("const.{$department}_bank_transfer_account.transfer_name") }}
@php $loop_count = 0; @endphp @foreach(range(1, 12) as $index) @php $title = 'fee_title'.sprintf('%02d', $index); $price = 'fee'.sprintf('%02d', $index); $type = 'fee_type'.sprintf('%02d', $index); @endphp @if(empty($params->$title) || empty($params->$price)) @continue @endif @php $loop_count++; @endphp @endforeach @if($loop_count < 9) @foreach(range($loop_count, 9) as $index) @if($loop_count == 0) @else @endif @endforeach @endif
{{ $params->$title }}{{ $params->$type ? '*' : '' }} {{ !empty($params->$price) ? number_format($params->$price) : '' }}
*は非課税
合計A+B
諸費用計
消費税10%


{{ (is_null($parts_fee) && is_null($tec_fee)) ? ' ' : ($total_page == $page_count ? number_format($parts_fee + $tec_fee) : ' ') }}
{{ is_null($params->getTotalFee(true)) ? ' ' : ($total_page == $page_count ? number_format($params->getTotalFee(true)) : ' ') }}
 {{ (is_null($parts_fee) && is_null($tec_fee) && is_null($params->getTotalBaseTax())) ? ' ' : ($total_page == $page_count ? number_format(round(($parts_fee + $tec_fee)/10) + $params->getTotalBaseTax()) : ' ') }}
御請求額 {{ ((is_null($parts_fee) && is_null($tec_fee) && is_null($params->getTotalFee()))) ? '' : ($total_page == $page_count ? number_format($params->getTotalFee() + $tec_fee + $parts_fee + round(($parts_fee + $tec_fee)/10)) : ' ') }}
E-1812
@endwhile @endif