public function edit($idEntry)
 {
     $entry = $this->entryRepo->find($idEntry);
     $entry = $this->entryRepo->getInputs($entry);
     $this->helper->validateRecord($entry);
     $company_id = CompanyRepositoryEloquent::getCompanies();
     $entry_type_id = TypeRepositoryEloquent::getTypes('entry');
     $vendor_id = ContactRepositoryEloquent::getContacts('vendor', true);
     $vehicle_id = VehicleRepositoryEloquent::getVehicles();
     $parts = PartRepositoryEloquent::getPartsByVehicle($entry->vehicle_id);
     $entry_parts = [];
     $typedialog = TypeRepositoryEloquent::getDialogStoreOptions('entry');
     foreach ($entry->partsEntries->toArray() as $entryPart) {
         $entry_parts[] = $entryPart['part_id'];
     }
     $attributes = [];
     if (config('app.attributes_api_url') != null) {
         $attributes = AttributeRepositoryEloquent::getAttributesWithValues('entry.' . $entry->type->name, $idEntry);
     }
     return view("entry.edit", compact('entry', 'entry_type_id', 'company_id', 'vehicle_id', 'vendor_id', 'parts', 'entry_parts', 'attributes', 'typedialog'));
 }
 public function getPartsByVehicle($idVehicle)
 {
     return PartRepositoryEloquent::getPartsByVehicle($idVehicle);
 }