debug the excel reports
This commit is contained in:
@@ -167,7 +167,7 @@ class CompareProgramAndFunction implements FromView, ShouldAutoSize, WithEvents,
|
||||
$query .= " GROUP BY province_id
|
||||
ORDER BY province_id ASC;";
|
||||
|
||||
$data = DB::select(DB::raw($query));
|
||||
$data = DB::select($query);
|
||||
|
||||
$sum = [
|
||||
'BotoniDoing' => 0,
|
||||
|
||||
@@ -69,11 +69,11 @@ class RoadUpgradeSafeties implements FromView, ShouldAutoSize, WithEvents, WithD
|
||||
'RoshanayiNoghteyi' => $road->operation_type_id1 == '304' ? $road->operation_type_amount1 :
|
||||
($road->operation_type_id2 == '304' ? $road->operation_type_amount2 :
|
||||
($road->operation_type_id3 == '304' ? $road->operation_type_amount3 :
|
||||
($road->operation_type_id4 == '304' ? $road->operation_type_amount4 : "-"))),
|
||||
($road->operation_type_id4 == '304' ? $road->operation_type_amount4 : 0))),
|
||||
'AlaemImeni' => $road->operation_type_id1 == '305' ? $road->operation_type_amount1 :
|
||||
($road->operation_type_id2 == '305' ? $road->operation_type_amount2 :
|
||||
($road->operation_type_id3 == '305' ? $road->operation_type_amount3 :
|
||||
($road->operation_type_id4 == '305' ? $road->operation_type_amount4 : "-"))),
|
||||
($road->operation_type_id4 == '305' ? $road->operation_type_amount4 : 0))),
|
||||
'Khatkeshi' => $road->operation_type_id1 == '306' ? $road->operation_type_amount1 :
|
||||
($road->operation_type_id2 == '306' ? $road->operation_type_amount2 :
|
||||
($road->operation_type_id3 == '306' ? $road->operation_type_amount3 :
|
||||
@@ -101,11 +101,11 @@ class RoadUpgradeSafeties implements FromView, ShouldAutoSize, WithEvents, WithD
|
||||
'RoshanayiNoghteyi' => $road->operation_type_id1 == '304' ? $road->operation_type_amount1 * $road->operation_type_progress1 / 100 :
|
||||
($road->operation_type_id2 == '304' ? $road->operation_type_amount2 * $road->operation_type_progress2 / 100 :
|
||||
($road->operation_type_id3 == '304' ? $road->operation_type_amount3 * $road->operation_type_progress3 / 100 :
|
||||
($road->operation_type_id4 == '304' ? $road->operation_type_amount4 * $road->operation_type_progress4 / 100 : "-"))),
|
||||
($road->operation_type_id4 == '304' ? $road->operation_type_amount4 * $road->operation_type_progress4 / 100 : 0))),
|
||||
'AlaemImeni' => $road->operation_type_id1 == '305' ? $road->operation_type_amount1 * $road->operation_type_progress1 / 100 :
|
||||
($road->operation_type_id2 == '305' ? $road->operation_type_amount2 * $road->operation_type_progress2 / 100 :
|
||||
($road->operation_type_id3 == '305' ? $road->operation_type_amount3 * $road->operation_type_progress3 / 100 :
|
||||
($road->operation_type_id4 == '305' ? $road->operation_type_amount4 * $road->operation_type_progress4 / 100 : "-"))),
|
||||
($road->operation_type_id4 == '305' ? $road->operation_type_amount4 * $road->operation_type_progress4 / 100 : 0))),
|
||||
'Khatkeshi' => $road->operation_type_id1 == '306' ? $road->operation_type_amount1 * $road->operation_type_progress1 / 100 :
|
||||
($road->operation_type_id2 == '306' ? $road->operation_type_amount2 * $road->operation_type_progress2 / 100 :
|
||||
($road->operation_type_id3 == '306' ? $road->operation_type_amount3 * $road->operation_type_progress3 / 100 :
|
||||
|
||||
@@ -290,7 +290,7 @@ class summaryAccidentPerformanceCity implements FromView, ShouldAutoSize, WithEv
|
||||
$query .= " GROUP BY city_id
|
||||
ORDER BY province_id ASC;";
|
||||
|
||||
$data = DB::select(DB::raw($query));
|
||||
$data = DB::select($query);
|
||||
|
||||
foreach ($data as $key => $value) {
|
||||
$array[$value->city_id] = [
|
||||
|
||||
@@ -271,7 +271,7 @@ class summaryAccidentPerformanceProject implements FromView, ShouldAutoSize, Wit
|
||||
$query .= " GROUP BY unique_code
|
||||
ORDER BY province_id ASC;";
|
||||
|
||||
$data = DB::select(DB::raw($query));
|
||||
$data = DB::select($query);
|
||||
|
||||
return view('excel.Upgrade.summaryAccidentPerformanceProject', [
|
||||
'array' => $data,
|
||||
|
||||
@@ -281,7 +281,7 @@ class summaryAccidentPerformanceProvince implements FromView, ShouldAutoSize, Wi
|
||||
$query .= " GROUP BY province_id
|
||||
ORDER BY province_id ASC;";
|
||||
|
||||
$data = DB::select(DB::raw($query));
|
||||
$data = DB::select($query);
|
||||
|
||||
$sum = [
|
||||
|
||||
|
||||
Reference in New Issue
Block a user