|
@@ -0,0 +1,93 @@
|
|
|
|
|
+<?php
|
|
|
|
|
+
|
|
|
|
|
+namespace App\Http\Controllers;
|
|
|
|
|
+
|
|
|
|
|
+use App\Models\Dictionary\Area;
|
|
|
|
|
+use App\Models\Dictionary\District;
|
|
|
|
|
+use Illuminate\Http\Request;
|
|
|
|
|
+
|
|
|
|
|
+class OrderController extends Controller
|
|
|
|
|
+{
|
|
|
|
|
+ protected array $data = [
|
|
|
|
|
+ 'active' => 'orders',
|
|
|
|
|
+ 'title' => 'Заказы',
|
|
|
|
|
+ 'id' => 'orders',
|
|
|
|
|
+// 'header' => [
|
|
|
|
|
+// 'id' => 'ID',
|
|
|
|
|
+// 'year' => 'Год',
|
|
|
|
|
+// 'nomenclature_number' => 'Номер номенклатуры',
|
|
|
|
|
+// 'article' => 'Артикул',
|
|
|
|
|
+// 'manufacturer' => 'Производитель',
|
|
|
|
|
+// 'name_tz' => 'Наименование ТЗ',
|
|
|
|
|
+// 'type_tz' => 'Тип по ТЗ',
|
|
|
|
|
+// 'type' => 'Тип',
|
|
|
|
|
+// 'manufacturer_name' => 'Наименование производителя',
|
|
|
|
|
+// 'sizes' => 'Размеры',
|
|
|
|
|
+// 'price_status' => 'Статус цены',
|
|
|
|
|
+// 'product_price_txt' => 'Цена товара',
|
|
|
|
|
+// 'installation_price_txt' => 'Цена установки',
|
|
|
|
|
+// 'service_price_txt' => 'Цена обслуживания',
|
|
|
|
|
+// 'total_price_txt' => 'Итоговая цена',
|
|
|
|
|
+// 'note' => 'Примечания',
|
|
|
|
|
+// 'created_at' => 'Дата создания',
|
|
|
|
|
+// ]
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Display a listing of the resource.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function index()
|
|
|
|
|
+ {
|
|
|
|
|
+ return view('orders.index', $this->data);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Show the form for creating a new resource.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function create()
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->data['districts'] = District::get()->pluck('name', 'id');
|
|
|
|
|
+ $this->data['areas'] = Area::get()->pluck('name', 'id');
|
|
|
|
|
+ return view('orders.edit', $this->data);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Store a newly created resource in storage.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function store(Request $request)
|
|
|
|
|
+ {
|
|
|
|
|
+ //
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Display the specified resource.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function show(string $id)
|
|
|
|
|
+ {
|
|
|
|
|
+ //
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Show the form for editing the specified resource.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function edit(string $id)
|
|
|
|
|
+ {
|
|
|
|
|
+ //
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Update the specified resource in storage.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function update(Request $request, string $id)
|
|
|
|
|
+ {
|
|
|
|
|
+ //
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Remove the specified resource from storage.
|
|
|
|
|
+ */
|
|
|
|
|
+ public function destroy(string $id)
|
|
|
|
|
+ {
|
|
|
|
|
+ //
|
|
|
|
|
+ }
|
|
|
|
|
+}
|