@extends('website.layouts.master') @section('content')

@lang('term.ContactUs')

contactus
@lang('term.NeedContactUs')
@lang('term.ContactUsTrough')
@foreach ($branches as $branch)
{{ $branch->{"name_" . app()->getLocale()} }}

{{ $branch->{"address_" . app()->getLocale()} }}

{{ $branch->phone }}
@if ($branch->email)
{{ $branch->email }}
@endif @php $branchTimes = $branch->branchTimes()->where('is_active', 1)->get(); @endphp @if ($branchTimes->isNotEmpty())

{{ __('header.workingtimes') }}: @foreach ($branchTimes->groupBy('day') as $day => $times) @php $dayName = [ 0 => __('header.sunday'), 1 => __('header.monday'), 2 => __('header.tuesday'), 3 => __('header.wednesday'), 4 => __('header.thursday'), 5 => __('header.friday'), 6 => __('header.saturday'), ][$day]; $timeRanges = $times ->map(function ($time) { $opening = formatTimeToArabic($time->opening_hour); $closing = formatTimeToArabic($time->closing_hour); return "{$opening} - {$closing}"; }) ->join(', '); @endphp
{{ $dayName }}: {{ $timeRanges }} @endforeach

@else

@lang('header.no_hours_available')

@endif
@endforeach
@endsection