@php $i = 0; $dropdownOptions = \App\Services\DateUtils::getMonthOptions(); @endphp @forelse($result as $key => $workinghour) @continue( in_array($key, ['total_workinghours']) ) @if( $i % 3 == 0 ) @endif @php $i++; @endphp @if( $i % 3 == 0 || $loop->last ) @endif @empty - @endforelse

{{__('forms.'.$key)}}

@if(isset($workinghour['hours'])) @foreach ($workinghour['hours'] as $hour) @php $from = Carbon\Carbon::parse($hour['from']); $to = Carbon\Carbon::parse($hour['to']); $totalDuration = $hour['hours']; @endphp
@if($workinghour['is_active'] == 1)

{{ $dropdownOptions[$hour['frequency']] }}

{{$from->format(config('settings.time_format'))}} - {{$to->format(config('settings.time_format'))}}
@if(!empty($hour['breaks']))

{{trans('forms.break_time')}}

@foreach ($hour['breaks'] as $break_time) @php $from = Carbon\Carbon::parse($break_time['start_time_break']); $to = Carbon\Carbon::parse($break_time['end_time_break']); @endphp

{{$from->format(config('settings.time_format'))}} - {{$to->format(config('settings.time_format'))}}

@endforeach @endif @else - @endif
@endforeach @endif