change name one culum name and prefix some item

This commit is contained in:
2025-05-31 15:16:57 +03:30
parent 73fa6d5ccb
commit e50b9e1113
6 changed files with 38 additions and 17 deletions

View File

@@ -23,6 +23,7 @@ use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Maatwebsite\Excel\Facades\Excel;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Throwable;
class OperatorController
{
@@ -40,11 +41,17 @@ class OperatorController
return Excel::download(new OperatorCartableReport($data['data']), $name);
}
/**
* @throws Throwable
*/
public function complaintsIndex(Request $request, OperatorService $operatorService): JsonResponse
{
return response()->json($operatorService->complaintsIndex($request));
}
/**
* @throws Throwable
*/
public function complaintsReport(Request $request, OperatorService $operatorService): BinaryFileResponse
{
$name = 'گزارش از رسیدگی به شکایات واکنش سریع ' . verta()->now()->format('Y-m-d H:i') . '.xlsx';