@php $page_count = 1; @endphp @php $department = Session::get('department'); @endphp @switch($department) @case('truck') @case('rental') @break @case('parts') @break @case('moritis') @break @case('lease') @break @endswitch
請 求 書
{{ is_object($params->bill_dest) ? $params->bill_dest->getPost() : '' }}
住所 {{ is_object($params->bill_dest) ? $params->bill_dest->getFullAddress() : '' }}
{{ isset($params->bill_dest->building_name) ? $params->bill_dest->building_name : '' }}
{{ is_object($params->bill_dest) ? $params->bill_dest->getFullName() : Str::limit($params->bill_dest_name, 40, '') }} {{ config('const.honorific_type.1') }}
{{ is_object($params->bill_dest) ? $params->bill_dest->partner_code : '' }}
TEL {{ is_object($params->bill_dest) ? $params->bill_dest->getFullTel() : '' }}
FAX {{ is_object($params->bill_dest) ? $params->bill_dest->getFullFax() : '' }}
@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
御客様名 伝票No.
{{ isset($params->partner->id) ? $params->partner->getFullName() : $params->partner_name }}{{ empty(isset($params->partner->id) ? $params->partner->getFullName() : $params->partner_name) ? '' : ''.config('const.honorific_type.2') }} {{ $params->reception_no }} {{ $page_count }}
@if(Session::get('department') == 'truck') @endif
登録番号 車名形状型式 原動機型式 車台番号
{{ $params->register_no }} {{ Str::limit($params->vehicle_name, 20, '') }} {{ isset($params->vehicle->id) ? $params->vehicle->vehicleBodyCategoryName() : '' }} {{ is_object($params->vehicle) ? $params->vehicle->vehicleModel() : '' }} {{ $params->engine_model }} {{ Str::limit($params->chassis_no, 30, '') }}
類別番号 初年度登録 走行km 次回車検日 受注日 請求日 {{ Session::get('department') == 'truck' ? '受付担当' : '入力者' }} {{ Session::get('department') == 'truck' ? '担当' : '担当者' }}
{{ $params->vehicle_type }} {{ isset($params->year_type_y) ? \App\Helper\SystemHelper::convertGtJYeaMonth($params->year_type_y, $params->year_type_m) : '' }} {{ empty($params->travel_distance) ? '' : number_format($params->travel_distance) }} {{ $params->next_inspection_date }} {{ Carbon::parse($params->created_at)->format('Y年n月j日') }} {{ !empty($params->output_date) ? Carbon::parse($params->output_date)->format('Y年n月j日') : '' }} {{ isset($params->input_user->name_kanji) ? $params->input_user->name_kanji : '' }} {{ isset($params->charger->name_kanji) ? $params->charger->name_kanji : '' }}
@if($department == 'truck') @else @endif @php $real_count = 0; $tec_fee = 0; $total_fee = 0; @endphp @foreach($params->content as $index => $content) @if($index == 0) @continue @endif @if($department == 'truck') @else @endif @php $real_count++; $tec_fee += (in_array($content->work_kind, config('const.content_technical')) ? $content->sub_total : 0); $total_fee += $content->sub_total; @endphp @if($real_count == 30) @break @endif @endforeach @if($real_count < 30) @foreach(range($real_count+1, 30) as $index) @if($department == 'truck') @else @endif @endforeach @endif {{-- --}}
{{ $department == 'parts' ? '品 名' : '内 容 ・ 品 名' }} 物 品
数 量 単 価金額(税別) 消費税 金額(税込)金 額
@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 : '' }} {{ 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->consumption_tax) ? '' : number_format($content->consumption_tax) }} {{ empty($content->total_with_tax) ? '' : number_format($content->total_with_tax) }}{{ empty($content->sub_total) ? '' : number_format($content->sub_total) }}
@if($index % 10 == 0) {{ $index }} @endif
小計 {{ empty($tec_fee) ? '' : '¥'.number_format($tec_fee) }} 小計 {{ empty($total_fee) ? '' : '¥'.number_format($total_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); @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 }} {{ !empty($params->$price) ? number_format($params->$price) : '' }}
小    計

付 帯 費 用 計
{{ empty($params->getTotal()) ? '' : '¥'.number_format($params->getTotal()) }}

{{ empty($params->getTotalFee()) ? '' : '¥'.number_format($params->getTotalFee()) }}
御請求額 {{ empty($params->getTotalFee() + $params->getTotal()) ? '' : '¥'.number_format($params->getTotalFee() + $params->getTotal()) }}
E-1812
@if(is_object($params->content)) @while($params->content->count() -1 > $real_count) @php $page_count++; @endphp @php $department = Session::get('department'); @endphp @switch($department) @case('truck') @case('rental') @break @case('parts') @break @case('moritis') @break @case('lease') @break @endswitch
請 求 書
{{ is_object($params->bill_dest) ? $params->bill_dest->getPost() : '' }}
住所 {{ is_object($params->bill_dest) ? $params->bill_dest->getFullAddress() : '' }}
{{ isset($params->bill_dest->building_name) ? $params->bill_dest->building_name : '' }}
{{ is_object($params->bill_dest) ? $params->bill_dest->getFullName() : Str::limit($params->bill_dest_name, 40, '') }} {{ config('const.honorific_type.1') }}
{{ is_object($params->bill_dest) ? $params->bill_dest->partner_code : '' }}
TEL {{ is_object($params->bill_dest) ? $params->bill_dest->getFullTel() : '' }}
FAX {{ is_object($params->bill_dest) ? $params->bill_dest->getFullFax() : '' }}
@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
御客様名 伝票No.
{{ isset($params->partner->id) ? $params->partner->getFullName() : $params->partner_name }}{{ empty(isset($params->partner->id) ? $params->partner->getFullName() : $params->partner_name) ? '' : ''.config('const.honorific_type.2') }} {{ $params->reception_no }} {{ $page_count }}
@if(Session::get('department') == 'truck') @endif
登録番号 車名形状型式 原動機型式 車台番号
{{ $params->register_no }} {{ Str::limit($params->vehicle_name, 20, '') }} {{ isset($params->vehicle->id) ? $params->vehicle->vehicleBodyCategoryName() : '' }} {{ is_object($params->vehicle) ? $params->vehicle->vehicleModel() : '' }} {{ $params->engine_model }} {{ Str::limit($params->chassis_no, 30, '') }}
類別番号 初年度登録 走行km 次回車検日 受注日 請求日 {{ Session::get('department') == 'truck' ? '受付担当' : '入力者' }} {{ Session::get('department') == 'truck' ? '担当' : '担当者' }}
{{ $params->vehicle_type }} {{ isset($params->year_type_y) ? \App\Helper\SystemHelper::convertGtJYeaMonth($params->year_type_y, $params->year_type_m) : '' }} {{ empty($params->travel_distance) ? '' : number_format($params->travel_distance) }} {{ $params->next_inspection_date }} {{ Carbon::parse($params->created_at)->format('Y年n月j日') }} {{ !empty($params->output_date) ? Carbon::parse($params->output_date)->format('Y年n月j日') : '' }} {{ isset($params->input_user->name_kanji) ? $params->input_user->name_kanji : '' }} {{ isset($params->charger->name_kanji) ? $params->charger->name_kanji : '' }}
@if($department == 'truck') @else @endif @php $tec_fee = 0; $total_fee = 0; $loop_count = 0; @endphp @foreach($params->content as $index => $content) @if($index > $real_count) @if($department == 'truck') @else @endif @php $real_count++; $tec_fee += (in_array($content->work_kind, config('const.content_technical')) ? $content->sub_total : 0); $total_fee += $content->sub_total; $loop_count++; @endphp @if($loop_count == 30) @break @endif @endif @endforeach @if($loop_count < 30) @foreach(range($loop_count+1, 30) as $index) @if($department == 'truck') @else @endif @endforeach @endif {{-- --}}
{{ $department == 'parts' ? '品 名' : '内 容 ・ 品 名' }} 物 品
数 量 単 価金額(税別) 消費税 金額(税込)金 額
@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 : '' }} {{ 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->consumption_tax) ? '' : number_format($content->consumption_tax) }} {{ empty($content->total_with_tax) ? '' : number_format($content->total_with_tax) }}{{ empty($content->sub_total) ? '' : number_format($content->sub_total) }}
@if($index % 10 == 0) {{ $index }} @endif
小計 {{ empty($tec_fee) ? '' : '¥'.number_format($tec_fee) }} 小計 {{ empty($total_fee) ? '' : '¥'.number_format($total_fee) }}
@if($department == 'lease') @else @endif @if($department == 'lease') @else @endif @if($department == 'lease') @endif
お振込みの際は下記口座までお願いします
尚、お振込手数料については貴社にてご負担願います
西日本シティ銀行八女支店(普通)3060303八女支店(普通)0759901
福岡銀行八女支店(普通)1897238八女支店(普通)1433622
振込名義 カ)スマートトラック
@php $loop_count = 0; @endphp @foreach(range(1, 12) as $index) @php $title = 'fee_title'.sprintf('%02d', $index); $price = 'fee'.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 }} {{ !empty($params->$price) ? number_format($params->$price) : '' }}
小    計

付 帯 費 用 計
{{ empty($params->getTotal()) ? '' : '¥'.number_format($params->getTotal()) }}

{{ empty($params->getTotalFee()) ? '' : '¥'.number_format($params->getTotalFee()) }}
御請求額 {{ empty($params->getTotalFee() + $params->getTotal()) ? '' : '¥'.number_format($params->getTotalFee() + $params->getTotal()) }}
E-1812
@endwhile @endif