@extends('layouts.lawyer.layout') @section('title') {{ $website_lang->where('lang_key','my_schedule')->first()->custom_lang }} @endsection @section('lawyer-content')
{{ $website_lang->where('lang_key','my_schedule')->first()->custom_lang }}
@php $old_day_id=0; @endphp @foreach ($lawyer->schedules as $index => $schedule) @if ($old_day_id != $schedule->day_id) @endif @php $old_day_id=$schedule->day_id; @endphp @endforeach
{{ $website_lang->where('lang_key','serial')->first()->custom_lang }} {{ $website_lang->where('lang_key','week_day')->first()->custom_lang }} {{ $website_lang->where('lang_key','schedule')->first()->custom_lang }}
{{ ++$index }} {{ $schedule->day->day }} @php $times=$lawyer->schedules->where('day_id',$schedule->day_id); @endphp @foreach ($times as $time) {{ strtoupper($time->start_time) }} - {{ strtoupper($time->end_time) }},
@endforeach
@endsection