| @@ 54-65 (lines=12) @@ | ||
| 51 | * |
|
| 52 | * @return \Illuminate\Http\Response |
|
| 53 | */ |
|
| 54 | public function create() |
|
| 55 | { |
|
| 56 | $material_types = Material_Type::all(); |
|
| 57 | $brands = Brand::all(); |
|
| 58 | $brand_models = Brand_Model::all(); |
|
| 59 | $moneySources = MoneySource::all(); |
|
| 60 | $locations = Location::all(); |
|
| 61 | $providers = Provider::all(); |
|
| 62 | ||
| 63 | return view('inventory/create', ['material_types' => $material_types, 'brands' => $brands, 'brand_models' => $brand_models, |
|
| 64 | 'moneySources' => $moneySources, 'locations' => $locations, 'providers' => $providers, ]); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Store a newly created resource in storage. |
|
| @@ 55-66 (lines=12) @@ | ||
| 52 | * |
|
| 53 | * @return \Illuminate\Http\Response |
|
| 54 | */ |
|
| 55 | public function create() |
|
| 56 | { |
|
| 57 | $material_types = Material_Type::all(); |
|
| 58 | $brands = Brand::all(); |
|
| 59 | $brand_models = Brand_Model::all(); |
|
| 60 | $moneySources = MoneySource::all(); |
|
| 61 | $locations = Location::all(); |
|
| 62 | $providers = Provider::all(); |
|
| 63 | ||
| 64 | return view('inventory/create', ['material_types' => $material_types, 'brands' => $brands, 'brand_models' => $brand_models, |
|
| 65 | 'moneySources' => $moneySources, 'locations' => $locations, 'providers' => $providers, ]); |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * Store a newly created resource in storage. |
|