@version(2) @php $brv_days = explode(',', (string)$lang->branch_weekday); $brv_today = (int)date('w'); $brv_full_address = trim($branch->address . ' ' . $branch->address_detail); $brv_has_map = is_numeric($branch->lat) && is_numeric($branch->lng); @endphp
@if ($branch->region){{ $branch->region }}@endif {{ $open_now ? $lang->branch_open_now : $lang->branch_closed_now }}

{{ $branch->name }}

@if ($branch->summary)

{{ $branch->summary }}

@endif
@if (count($images)) @elseif ($branch->thumb) @endif
@if ($branch->content)

{{ $lang->branch_content }}

{!! $branch->content !!}
@endif

{{ $lang->branch_hours }}

@foreach ($brv_days as $wd => $wd_label) @php $h = $hours[$wd] ?? null; $closed = !$h || (string)$h->is_closed === 'Y' || !$h->open_time || !$h->close_time; $has_break = $h && $h->break_start && $h->break_end; @endphp @endforeach
{{ $wd_label }} @if ($closed) {{ $lang->branch_day_closed }} @else {{ $h->open_time }} - {{ $h->close_time }} @if ($has_break) {{ $lang->branch_break }} {{ $h->break_start }} - {{ $h->break_end }} @endif @endif
@if (count($holidays))
    @foreach ($holidays as $hd) @php $hd_once = (string)$hd->repeat_type === 'once'; $hd_date = (string)$hd->holiday_date; $hd_when = $hd_once ? (strlen($hd_date) === 8 ? substr($hd_date, 0, 4) . '-' . substr($hd_date, 4, 2) . '-' . substr($hd_date, 6, 2) : $hd_date) : (sprintf('%d', (int)$hd->nth) . ' ' . ($brv_days[(int)$hd->weekday] ?? '')); @endphp
  • {{ $hd_when }} {{ $hd->reason }}
  • @endforeach
@endif