@if($cycle == 'monthly') @foreach($results['start_date'] as $index => $result) {{ Carbon\Carbon::parse($result)->translatedFormat('F')}} @endforeach @else @foreach($results['start_date'] as $index => $result) {{ \Carbon\Carbon::parse($result)->translatedFormat($company->date_format) }} @lang('app.to') {{ \Carbon\Carbon::parse($results['end_date'][$index])->translatedFormat($company->date_format) }} @if($cycle != 'semimonthly') (@lang('payroll::app.week')-{{ $index+1 }}) @endif @endforeach @endif