ferrari 3 месяцев назад
Родитель
Сommit
60d3601308

+ 2 - 2
app/Http/Livewire/AbsenceReport.php

@@ -62,9 +62,9 @@ class AbsenceReport extends Component
                     if (!in_array($member->member->id, $presences_annullate)) {
                         if (array_key_exists($member->member->id, $this->records)) {
                             $this->records[$member->member->id]['total'] += 1;
-                            $this->records[$member->member->id]['date'] .= " - " . date("d/m/Y", strtotime($calendar->from));
+                            $this->records[$member->member->id]['date'] .= " - " . date("d/m", strtotime($calendar->from));
                         } else
-                            $this->records[$member->member->id] = array("last_name" => $member->member->last_name, "first_name" => $member->member->first_name, "course" => $calendar->name, "total" => 1, "date" => date("d/m/Y", strtotime($calendar->from)));
+                            $this->records[$member->member->id] = array("last_name" => $member->member->last_name, "first_name" => $member->member->first_name, "course" => $calendar->name, "total" => 1, "date" => date("d/m", strtotime($calendar->from)));
                     }
                 }
             }

+ 1 - 1
resources/views/livewire/absence_report.blade.php

@@ -13,7 +13,7 @@
 
     <div class="row">
         <div class="col-12 mb-3">
-            <h3 class="primary">Stagione {{$year}}/{{$year+1}}</h3>
+            <h3 class="primary">Assenze {{$year}}/{{$year+1}}</h3>
         </div>
         <div class="col-12">
             <table class="report-table">