Browse Source

Change monthDateArray to month_date_array

pull/20/head
Nafies Luthfi 7 years ago
parent
commit
bc528c83f0
  1. 2
      app/Helpers/date_time.php
  2. 2
      resources/views/reports/sales/monthly.blade.php

2
app/Helpers/date_time.php

@ -62,7 +62,7 @@ function get_years()
return $years;
}
function monthDateArray($year, $month)
function month_date_array($year, $month)
{
$dateCount = Carbon\Carbon::parse($year.'-'.$month)->format('t');
$dates = [];

2
resources/views/reports/sales/monthly.blade.php

@ -34,7 +34,7 @@
</thead>
<tbody>
@php $chartData = []; @endphp
@foreach(monthDateArray($year, $month) as $dateNumber)
@foreach(month_date_array($year, $month) as $dateNumber)
@php
$any = isset($reports[$dateNumber]);
$count = $any ? $reports[$dateNumber]->count : 0;

Loading…
Cancel
Save