예제 #1
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;
 }
예제 #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;
 }
예제 #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_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;
 }