PATH:
home
/
lab2454c
/
costbloc.com
/
app
/
Http
/
Controllers
<?php /** * @package ExportController * @author TechVillage <support@techvill.org> * @contributor Sakawat Hossain Rony <[sakawat.techvill@gmail.com]> * @created 26-01-2023 */ namespace App\Http\Controllers; use App\Models\{Product, ProductCategory}; use App\Services\Export\ProductExportService; use Illuminate\Http\Request; class ExportController extends Controller { public function index() { return view('admin.epz.export.index'); } /** * product export * * @param Request $request * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Http\RedirectResponse|mixed */ public function productExport(Request $request) { if ($request->isMethod('get')) { $data['productCategories'] = ProductCategory::join("categories", "product_categories.category_id", "categories.id") ->join("products", "products.id", "product_categories.product_id") ->selectRaw("categories.name, categories.id") ->distinct() ->get(); $data['productVendors'] = Product::select('vendor_id')->distinct()->with('vendor:id,name')->get(); $data['columns'] = getProductExportColumn(); return view('admin.epz.export.product', $data); } $export = new ProductExportService($request); if (!$export->process()) { $response = $this->messageArray($export->getError(), 'fail'); $this->setSessionValue($response); return redirect()->back(); } return $export->getResponse(); } }
[-] CategoryController.php
[edit]
[-] ImportController.php
[edit]
[-] PermissionRoleController.php
[edit]
[-] BatchController.php
[edit]
[-] WithdrawalController.php
[edit]
[-] SsoController.php
[edit]
[-] ExportController.php
[edit]
[-] OrderStatusController.php
[edit]
[-] ProductSettingController.php
[edit]
[+]
..
[-] UserController.php
[edit]
[+]
Api
[-] EmailController.php
[edit]
[-] AttributeController.php
[edit]
[-] MailTemplateController.php
[edit]
[+]
Site
[-] AdminOrderController.php
[edit]
[-] AttributeGroupController.php
[edit]
[-] EmailConfigurationController.php
[edit]
[-] OrderSettingController.php
[edit]
[-] Controller.php
[edit]
[-] AccountSettingController.php
[edit]
[-] SystemInfoController.php
[edit]
[-] LoginController.php
[edit]
[-] AddonsMangerController.php
[edit]
[-] CurrencyController.php
[edit]
[-] BrandController.php
[edit]
[-] FilesController.php
[edit]
[-] ReviewController.php
[edit]
[-] LanguageController.php
[edit]
[-] RoleController.php
[edit]
[-] TransactionController.php
[edit]
[-] VendorController.php
[edit]
[-] PreferenceController.php
[edit]
[-] CompanySettingController.php
[edit]
[-] ProductController.php
[edit]
[-] DashboardController.php
[edit]
[-] MaintenanceModeController.php
[edit]
[+]
Vendor