@if(count($parts_array)) @foreach($parts_array as $key => $parts) @php $vehicle = isset($parts->vehicle) ? $parts->vehicle : null; $sale = isset($parts->sale) ? $parts->sale : null; @endphp

ウ シ パ ー ツ 部 品 カ ー ド

【部品情報】

作成日 作成者
{{ \App\Helper\SystemHelper::convertGtDate($parts->create_date) }} {{ \App\Service\UserService::getUserName($parts->create_user) }}
棚番 棚番(追加) 管理番号 部品区分
{{ $parts->shelf_no }} {{ $parts->shelf_no2 }} {{ $parts->parts_code }} {{ config('const.parts_check_class.'.$parts->parts_check_class) }}
部品名 (部品名補助含む)
{{ $parts->parts_name }} {{ $parts->addition_parts_name }}
部品詳細
車両メーカー {{ \App\Models\Masters\VehicleMaker::findById($parts->maker, 'name') }} サイズ {{ config('const.parts_size.'.$parts->size) }}
初年度登録 {{ $parts->getYearType() }} 型式 {{ $parts->getModel() }}
車体番号 {{ $parts->getChassisNo() }} 走行距離 {{ (!empty($parts->car_distance)) ? $parts->car_distance.'km' : (is_object($parts->vehicle) ? $parts->vehicle->getTravelDistance() : '') }}
純正品番 {{ isset($parts->genuine[0]->genuine_no) ? $parts->genuine[0]->genuine_no : '' }} 純正定価 {{ (is_numeric($parts->genuine_price) && !empty($parts->genuine_price)) ? number_format($parts->genuine_price) : '' }}
現物品番 {{ !empty($parts->is_same_genuine) ? (isset($parts->genuine[0]->genuine_no) ? $parts->genuine[0]->genuine_no : '') : $parts->current_parts_no }} -
部品年式 {{ \App\Helper\SystemHelper::convertGtJYeaMonth($parts->parts_year_type_y, $parts->parts_year_type_m) }} 部品型式 {{ $parts->parts_model }}
部品メーカー {{ $parts->parts_maker }} メーカー品番 {{ $parts->parts_maker_no }}
エンジン型式 {{ $parts->engine_model }} 馬力 {{ !empty($parts->engine_horsepower) ? number_format($parts->engine_horsepower).'PS' : '' }}
エンジン仕様 {{ \App\Models\Masters\VehicleEngineKind::findById($parts->engine_type, 'name') }} 燃料の種類 {{ config('const.fuel_kind.'.$parts->fuel_kind) }}
ターボ {{ config('const.engine_turbo.'.$parts->turbo) }} ターボの種類 {{ config('const.parts_turbo_type.'.$parts->turbo_type) }}
ミッション型式 {{ $parts->mission_model }} ミッション 数 {{ \App\Models\Masters\VehicleMissionCount::findById($parts->mission_count, 'name') }}
シフト式 {{ \App\Models\Masters\VehicleShiftName::findById($parts->shift_type, 'name') }} シフト名 {{ \App\Models\Masters\VehicleShiftNameSub::findById($parts->shift_name, 'name') }}
デフ型式 {{ $parts->diff_model }} デフ枚数 {{ (!empty($parts->diff_count1) && !empty($parts->diff_count2)) ? number_format($parts->diff_count1).'―'.number_format($parts->diff_count2) : $parts->diff_count1.$parts->diff_count2 }}
ギヤ比 {{ $parts->gear_ratio }} キャビン形状 {{ $parts->getCabinName() }}
キャブ形状 {{ config('const.old_parts_cab_shape.'.$parts->cab_shape) }} キャブ幅 {{ config('const.old_parts_cab_width.'.$parts->cab_width) }}
駆動方式 {{ \App\Models\Masters\VehicleDriveMethod::findById($parts->drive_method, 'name') }} 電圧 {{ config('const.voltage_kind.'.$parts->voltage) }}
点検 {{ config('const.parts_check_status.'.$parts->is_parts_check) }} 点検方法 {{ $parts->parts_check_method }}
部品寸法 L:{{ is_numeric($parts->parts_length) ? number_format($parts->parts_length).'mm' : '' }} W:{{ is_numeric($parts->parts_width) ? number_format($parts->parts_width).'mm' : '' }} H:{{ is_numeric($parts->parts_height) ? number_format($parts->parts_height).'mm' : '' }}
カラー {{ $parts->color }} -
備考(社内用)

{!! nl2br($parts->parts_note) !!}

商品化チェック
HP入力 常務 フロント 写真
在庫表 JTP HP パーツバンク

【仕入情報】

@if(is_object($parts->parts_stocking)) @else @endif
仕入日 仕入先
{{ !empty($parts->purchase_date) ? \App\Helper\SystemHelper::convertGtDate($parts->purchase_date) : '' }}

{{ is_object($parts->parts_stocking->partner) ? $parts->parts_stocking->partner->getFullName(1) : '' }}

{{ is_object($parts->vehicle) ? config('const.usitora_name') : '' }}

仕入金額
部品価格(税別) {{ $parts->purchase_price !== null ? number_format($parts->purchase_price) : '' }}円 小計( 税別原価)
その他( 税別) {{ $parts->etc_fee !== null ? number_format($parts->etc_fee) : '' }}円 {{ $parts->getPrimeTax() !== null ? number_format($parts->getPrimeTax()) : '' }}
送料( 税別) {{ $parts->prime_shipping_fee !== null ? number_format($parts->prime_shipping_fee) : '' }}円 消費税
JTP手数料(税別) {{ $parts->prime_jtp_fee !== null ? number_format($parts->prime_jtp_fee) : '' }}円 {{ $parts->getPrimeTax() !== null ? number_format($parts->getPrimeTax() / 10) : '' }}
{{ isset($parts->prime_price_addition[0]->field) ? $parts->prime_price_addition[0]->field : '' }} {{ isset($parts->prime_price_addition[0]->value) ? number_format($parts->prime_price_addition[0]->value) : '' }}円 合計
{{ isset($parts->prime_price_addition[1]->field) ? $parts->prime_price_addition[1]->field : '' }} {{ isset($parts->prime_price_addition[1]->value) ? number_format($parts->prime_price_addition[1]->value) : '' }}円 {{ ($parts->getPrimePrice() !== null || $parts->getPrimeTax() !== null) ? number_format(round($parts->getPrimePrice() + $parts->getPrimeTax() + $parts->getPrimeTax() / 10)) : '' }}
{{ isset($parts->prime_price_addition[2]->field) ? $parts->prime_price_addition[2]->field : '' }} {{ isset($parts->prime_price_addition[2]->value) ? number_format($parts->prime_price_addition[2]->value) : '' }}円
ユーザー価格(税別) 業販価格(税別) UJグループ価格(税別)
{{ $parts->user_price !== null ? number_format($parts->user_price) : '' }} {{ $parts->sale_price !== null ? number_format($parts->sale_price) : '' }} {{ $parts->uj_price !== null ? number_format($parts->uj_price) : '' }}

【販売情報】

販売担当者 販売日 販売先
{{ \App\Service\UserService::getUserName(isset($sale->user_id) ? $sale->user_id : '', 'name') }} {{ (isset($sale->acceptance_date) && !empty($sale->acceptance_date)) ? \App\Helper\SystemHelper::convertGtDate($sale->acceptance_date) : '' }}

{{ isset($sale->partner->id) ? $sale->partner->getFullName(1) : '' }}

販売目的 備考
{{ config('const.sale_purpose.'.(isset($sale->purpose) ? $sale->purpose : '')) }}

@php echo nl2br(isset($sale->end_user) ? $sale->end_user : '') @endphp

販売金額
部品価格(税別) {{ $parts->selling_price !== null ? number_format($parts->selling_price) : '' }}円 小計( 税別原価)
送料( 税別) {{ $parts->shipping_fee !== null ? number_format($parts->shipping_fee) : '' }}円 {{ $parts->getSaleTax() !== null ? number_format($parts->getSaleTax()) : '' }}
JTP手数料(税別) {{ $parts->jtp_fee !== null ? number_format($parts->jtp_fee) : '' }}円 消費税
{{ isset($parts->sale_price_addition[0]->field) ? $parts->sale_price_addition[0]->field : '' }} {{ isset($parts->sale_price_addition[0]->value) ? number_format($parts->sale_price_addition[0]->value) : '' }}円 {{ $parts->getSaleTax() !== null ? number_format(round($parts->getSaleTax() / 10)) : '' }}
{{ isset($parts->sale_price_addition[1]->field) ? $parts->sale_price_addition[1]->field : '' }} {{ isset($parts->sale_price_addition[1]->value) ? number_format($parts->sale_price_addition[1]->value) : '' }}円 合計
{{ isset($parts->sale_price_addition[2]->field) ? $parts->sale_price_addition[2]->field : '' }} {{ isset($parts->sale_price_addition[2]->value) ? number_format($parts->sale_price_addition[2]->value) : '' }}円 {{ ($parts->getSalePrice()!==null || $parts->getSaleTax()!==null) ? number_format(round($parts->getSalePrice() + $parts->getSaleTax() + $parts->getSaleTax() / 10)) : '' }}
当社負担
{{ isset($parts->response_price_addition[0]->field) ? $parts->response_price_addition[0]->field : '' }} {{ isset($parts->response_price_addition[0]->value) ? number_format($parts->response_price_addition[0]->value) : '' }}円 粗利
{{ isset($parts->response_price_addition[1]->field) ? $parts->response_price_addition[1]->field : '' }} {{ isset($parts->response_price_addition[1]->value) ? number_format($parts->response_price_addition[1]->value) : '' }}円 {{ $parts->profit_correct !== null ? number_format($parts->profit_correct) : '' }}
{{ isset($parts->response_price_addition[2]->field) ? $parts->response_price_addition[2]->field : '' }} {{ isset($parts->response_price_addition[2]->value) ? number_format($parts->response_price_addition[2]->value) : '' }}円
販売情報チェック
常務 HP削除 担当者
在庫表 JTP HP パーツバンク
らくだ問合せ番号 送り 状番号
@endforeach @endif