OrderController.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. namespace App\Http\Controllers;
  3. use App\Models\Dictionary\Area;
  4. use App\Models\Dictionary\District;
  5. use Illuminate\Http\Request;
  6. class OrderController extends Controller
  7. {
  8. protected array $data = [
  9. 'active' => 'orders',
  10. 'title' => 'Заказы',
  11. 'id' => 'orders',
  12. // 'header' => [
  13. // 'id' => 'ID',
  14. // 'year' => 'Год',
  15. // 'nomenclature_number' => 'Номер номенклатуры',
  16. // 'article' => 'Артикул',
  17. // 'manufacturer' => 'Производитель',
  18. // 'name_tz' => 'Наименование ТЗ',
  19. // 'type_tz' => 'Тип по ТЗ',
  20. // 'type' => 'Тип',
  21. // 'manufacturer_name' => 'Наименование производителя',
  22. // 'sizes' => 'Размеры',
  23. // 'price_status' => 'Статус цены',
  24. // 'product_price_txt' => 'Цена товара',
  25. // 'installation_price_txt' => 'Цена установки',
  26. // 'service_price_txt' => 'Цена обслуживания',
  27. // 'total_price_txt' => 'Итоговая цена',
  28. // 'note' => 'Примечания',
  29. // 'created_at' => 'Дата создания',
  30. // ]
  31. ];
  32. /**
  33. * Display a listing of the resource.
  34. */
  35. public function index()
  36. {
  37. return view('orders.index', $this->data);
  38. }
  39. /**
  40. * Show the form for creating a new resource.
  41. */
  42. public function create()
  43. {
  44. $this->data['districts'] = District::get()->pluck('name', 'id');
  45. $this->data['areas'] = Area::get()->pluck('name', 'id');
  46. return view('orders.edit', $this->data);
  47. }
  48. /**
  49. * Store a newly created resource in storage.
  50. */
  51. public function store(Request $request)
  52. {
  53. //
  54. }
  55. /**
  56. * Display the specified resource.
  57. */
  58. public function show(string $id)
  59. {
  60. //
  61. }
  62. /**
  63. * Show the form for editing the specified resource.
  64. */
  65. public function edit(string $id)
  66. {
  67. //
  68. }
  69. /**
  70. * Update the specified resource in storage.
  71. */
  72. public function update(Request $request, string $id)
  73. {
  74. //
  75. }
  76. /**
  77. * Remove the specified resource from storage.
  78. */
  79. public function destroy(string $id)
  80. {
  81. //
  82. }
  83. }