| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- namespace App\Http\Controllers;
- use App\Models\Brigadier;
- use App\Models\Dictionary\Area;
- use App\Models\Dictionary\District;
- use App\Models\ObjectType;
- use App\Models\OrderStatus;
- 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::query()->get()->pluck('name', 'id');
- $this->data['areas'] = Area::query()->get()->pluck('name', 'id');
- $this->data['objectTypes'] = ObjectType::query()->get()->pluck('name', 'id');
- $this->data['orderStatuses'] =OrderStatus::query()->get()->pluck('name', 'id');
- $this->data['brigadiers'] = Brigadier::query()->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)
- {
- //
- }
- }
|