Browse Source

data type on excel

master
farhan 3 months ago
parent
commit
e261244bd9
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/Http/Controllers/MainController.php
  2. 1
    1
      resources/views/attendance.blade.php

+ 1
- 1
app/Http/Controllers/MainController.php View File

@@ -72,7 +72,7 @@ class MainController extends Controller
72 72
     {
73 73
         $vips = RSVP::where('is_vip', true)->get();
74 74
 
75
-        $csvData = "Nama,Bilangan,No Tel\n";
75
+        $csvData = "\xEF\xBB\xBF" . "Nama,Bilangan,No Tel\n";
76 76
         foreach ($vips as $vip) {
77 77
             $csvData .= "{$vip->name},{$vip->member},{$vip->phone}\n";
78 78
         }

+ 1
- 1
resources/views/attendance.blade.php View File

@@ -30,7 +30,7 @@
30 30
                 @endforeach
31 31
                 </tbody>
32 32
             </table>
33
-            <a href="{{ route('download.vip.csv') }}" class="btn btn-primary">Download VIP Data</a>
33
+            <a href="{{ route('download.vip.csv') }}" class="btn">Download VIP Data</a>
34 34
         </div>
35 35
         
36 36
         <div>

Loading…
Cancel
Save