'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) { // } }