|
@@ -65,11 +65,12 @@ if(!empty($action)) {
|
|
|
$handle = fopen("php://output", "w");
|
|
$handle = fopen("php://output", "w");
|
|
|
|
|
|
|
|
fputcsv($handle, [
|
|
fputcsv($handle, [
|
|
|
- "Internal ID", "City", "Legal Entity", "Region", "Area Manager", "Area Manager Email", "Open", "Close", "Name", "Address", "Postcode", "Email", "Latitude", "Longitude"
|
|
|
|
|
|
|
+ "ID", "Internal ID", "City", "Legal Entity", "Region", "Area Manager", "Area Manager Email", "Open", "Close", "Name", "Address", "Postcode", "Email", "Latitude", "Longitude"
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
foreach($locations as $location) {
|
|
foreach($locations as $location) {
|
|
|
fputcsv($handle, [
|
|
fputcsv($handle, [
|
|
|
|
|
+ $location->id,
|
|
|
$location->internal_id,
|
|
$location->internal_id,
|
|
|
$location->city,
|
|
$location->city,
|
|
|
$location->legal_entity_name,
|
|
$location->legal_entity_name,
|