debug excel blades
This commit is contained in:
@@ -53,7 +53,7 @@ class RoadItemTableService
|
|||||||
$allowedSortings = ['*'];
|
$allowedSortings = ['*'];
|
||||||
|
|
||||||
$query = RoadItemsProject::query()
|
$query = RoadItemsProject::query()
|
||||||
->select(['id', 'supervisor_description', 'item', 'item_fa', 'sub_item', 'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
|
->select(['id', 'province_fa', 'edarat_name', 'supervisor_description', 'item', 'item_fa', 'sub_item', 'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
|
||||||
'end_lat', 'end_lng', 'activity_date_time', 'created_at', 'status_fa', 'status'])
|
'end_lat', 'end_lng', 'activity_date_time', 'created_at', 'status_fa', 'status'])
|
||||||
->where('is_new', 1)
|
->where('is_new', 1)
|
||||||
->where('user_id', auth()->user()->id)
|
->where('user_id', auth()->user()->id)
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ class DataTableService
|
|||||||
|
|
||||||
$query = $this->applySelect($query, $this->allowedSelects);
|
$query = $this->applySelect($query, $this->allowedSelects);
|
||||||
$query = $this->includeRelationsInQuery($query, $this->allowedRelations);
|
$query = $this->includeRelationsInQuery($query, $this->allowedRelations);
|
||||||
|
$query = $this->applyGroupBy($query, $this->allowedGroupBy);
|
||||||
|
|
||||||
$this->totalRowCount = $query->count();
|
$this->totalRowCount = $query->count();
|
||||||
|
|
||||||
@@ -96,8 +97,6 @@ class DataTableService
|
|||||||
$query = (new ApplySort($query, $sort))->apply();
|
$query = (new ApplySort($query, $sort))->apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = $this->applyGroupBy($query, $this->allowedGroupBy);
|
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
||||||
</td>
|
</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['cmms_machines'] != null ? $item['cmms_machines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['cmmsMachines'] != null ? $item['cmmsMachines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
||||||
@@ -114,5 +114,4 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
||||||
</td>
|
</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['cmms_machines'] != null ? $item['cmms_machines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['cmmsMachines'] != null ? $item['cmmsMachines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user