Beispiel #1
0
 public function updateCustomRecord($parameters)
 {
     Brand::where('id_071', $parameters['id'])->update(['id_071' => $this->request->input('id'), 'name_071' => $this->request->input('name')]);
 }
Beispiel #2
0
 public function showCustomRecord($parameters)
 {
     $parameters['companies'] = Company::all();
     $parameters['families'] = Family::all();
     $parameters['brands'] = Brand::all();
     $parameters['products'] = Product::builder()->where('brand_id_072', $parameters['object']->brand_id_078)->get();
     return $parameters;
 }
Beispiel #3
0
 public function showCustomRecord($parameters)
 {
     $parameters['companies'] = Company::all();
     $parameters['families'] = Family::all();
     $parameters['brands'] = Brand::all();
     $parameters['products'] = Product::builder()->where('active_072', true)->where('brand_id_072', $parameters['object']->brand_id_079)->get();
     if ($parameters['object']->stock_id_079 == null) {
         $parameters['afterButtonFooter'] = '<a class="btn btn-danger margin-l10 delete-lang-record" href="' . route($parameters['resource'] === 'octopus-laboratory-order' ? 'createOctopusLaboratoryStock' : 'createOctopusStock', ['id' => Crypt::encrypt($parameters['id']), 'offset' => $parameters['offset']]) . '">' . trans('octopus::pulsar.create_stock') . '</a>';
     }
     return $parameters;
 }
Beispiel #4
0
 public function showCustomRecord($parameters)
 {
     $parameters['companies'] = Company::all();
     $parameters['families'] = Family::all();
     $parameters['brands'] = Brand::all();
     $parameters['products'] = Product::builder()->where('active_072', true)->where('brand_id_072', $parameters['object']->brand_id_080)->get();
     if ($parameters['object']->expiration_080 == null || $parameters['object']->expiration_080 > date('U')) {
         $parameters['afterButtonFooter'] = '<a class="btn btn-danger margin-l10 delete-lang-record" href="' . route($parameters['resource'] === 'octopus-supervisor-stock' ? 'createOctopusSupervisorRequestFromStock' : 'createOctopusRequestFromStock', ['stock' => $parameters['id'], 'offset' => $parameters['offset']]) . '">' . trans('octopus::pulsar.replace_stock') . '</a>';
     }
     return $parameters;
 }
 public function run()
 {
     Brand::insert([['id_071' => 1, 'name_071' => 'Halloween'], ['id_071' => 2, 'name_071' => 'Roberto Verino'], ['id_071' => 3, 'name_071' => 'Tous'], ['id_071' => 4, 'name_071' => 'Annick Goutal'], ['id_071' => 5, 'name_071' => 'Salvatore Ferragamo'], ['id_071' => 6, 'name_071' => 'Jesús del Pozo'], ['id_071' => 7, 'name_071' => 'Desigual']]);
 }
Beispiel #6
0
 public function editCustomRecord($parameters)
 {
     $parameters['brands'] = Brand::all();
     return $parameters;
 }