From 342cd8cb5102002e6faa73e1d02f38c12872bea5 Mon Sep 17 00:00:00 2001 From: amirghasempoor Date: Sat, 14 Feb 2026 15:34:55 +0330 Subject: [PATCH] add select --- .../Dashboard/Province/OperatorDialogues/DataTableService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/Dashboard/Province/OperatorDialogues/DataTableService.php b/app/Services/Dashboard/Province/OperatorDialogues/DataTableService.php index d844d42..82f2101 100644 --- a/app/Services/Dashboard/Province/OperatorDialogues/DataTableService.php +++ b/app/Services/Dashboard/Province/OperatorDialogues/DataTableService.php @@ -13,6 +13,10 @@ class DataTableService { $query = DB::table('asteriskcdrdb.cdr') ->leftJoin('roaddb.operator_dialogues', 'asteriskcdrdb.cdr.uniqueid', '=', 'roaddb.operator_dialogues.cdr_unique_id') + ->select( + 'asteriskcdrdb.cdr.*', + DB::raw("CONCAT('" . url('recordings') . "/', DATE_FORMAT(calldate, '%Y/%m/%d/'), recordingfile) AS recording_url") + ) ->where('dst', '<>', '') ->where('lastapp', '=', 'Dial') ->where('duration', '>', 0)