• @if(isset($vehicle_info['id'])) {{-- Form::open(['route'=>"backend.$department.vehicle.update_info",'id'=>'vehicle_info_form','name'=>'vehicle_info_form','method'=>'PUT','files'=>true]) --}} @else {{-- Form::open(['route'=>"backend.$department.vehicle.create_info",'id'=>'vehicle_info_form','name'=>'vehicle_info_form','method'=>'POST','files'=>true]) --}} @endif {{----}} {{----}} @unless($department == 'parts') @endunless

    入力情報

    入力者 @if(isset($vehicle['id'])) @if(isset($vehicle['created_by'])) {{ \App\Service\UserService::getUserNameFromAllUser($user_names, $vehicle['created_by'] ) }} @endif @else {{ Auth::guard('admin')->user()->name_kanji }} @endif 入力日 @if(isset($vehicle['id']) && isset($vehicle['created_at'])) {{ isset($vehicle['created_at']) ? Carbon::parse($vehicle['created_at'])->format('Y-m-d') : '' }} @else {{ Carbon::now()->format('Y-m-d') }} @endif

    仕入情報

    作成日
    @error('vehicle.info.created_date') {{ $message }} @enderror
    仕入先 @include('backend.share._parts._partner_search_part', ['partner_id'=>old('vehicle.info.supplier', isset($vehicle_info['supplier']) ? $vehicle_info['supplier'] : '')])
    @error('vehicle.info.supplier') {{ $message }} @enderror
    仕入担当者 @error('vehicle.info.purchase_user_id') {{ $message }} @enderror 入庫日
    入庫予定日
    入庫日
    @if(Auth::guard('admin')->user()->canManageVehicleStock()) @if(old('vehicle.basic.confirm_input_date', isset($vehicle_info['confirm_input_date']) ? $vehicle_info['confirm_input_date'] : '') != config('const.vehicle_info_confirm_status.confirmed')) @else @endif @endif
    請求書受領済 @if(Auth::guard('admin')->user()->canManageVehiclePurchase())
    @else
    @endif
    支払済 @if(Auth::guard('admin')->user()->canManageVehiclePurchase())
    支払日
    @else
    支払日
    @endif
    経理区分
    @foreach(config('const.accounts_class') as $key => $value) user()->canManageVehiclePurchase() ? '' : 'disabled' }}> @endforeach
    @if(!Auth::guard('admin')->user()->canManageVehiclePurchase()) @endif
    資産へ切替日
    @unless($department == 'parts')
    @endunless
    @if (isset($detail)) @if (isset($is_confirm)) @if(isset($vehicle['id'])) @else @endif @else @if(Auth::guard('admin')->user()->canEditVehicle($vehicle["id"])) @endif @endif @else @if (isset($vehicle['id'])) @if($home_page =='list_ushiparts') @else @endif @else @endif @if(isset($vehicle_info['id'])) @endif @if($department === 'truck') @if(isset($vehicle_info['id'])) @php $url1 = route("backend.{$department}.document.document_purchase_detail", ['vehicle_id'=>$vehicle_info['vehicle_id']]); $url2 = route("backend.{$department}.document.document_sale_detail", ['vehicle_id'=>$vehicle_info['vehicle_id']]); @endphp @endif @endif @if(isset($vehicle['sale_info']['id']) && $department != 'parts') @if (isset($vehicle['id'])) isset($vehicle['id']) ? $vehicle['id'] : '']) }}" type="button" value="出力"> @endif @endif @endif @if(isset($vehicle["id"])) @php $ob_vehicle = \App\Models\Vehicle\Vehicle::find($vehicle["id"]); @endphp @if(is_object($ob_vehicle) && is_object($ob_vehicle->vehicle_purchase_order) ) @endif @endif
    {{-- Form::close() --}}