@extends('layouts.app') @section('title', 'Branch Management & Working Hours') @section('content')

Branches & Operating Hours

Configure typing center branches, main branch, and 7-day working schedules.

Plan Branch Limit: Currently using {{ count($branches) }} of {{ $allowedBranches }} allowed branches.
@if(count($branches) >= $allowedBranches) Limit Reached (Upgrade Available) @endif
@foreach($branches as $branch)

{{ $branch->name }}

@if($branch->is_main) MAIN BRANCH @endif
Code: {{ $branch->code }}

Emirate: {{ $branch->emirate }}

Phone: {{ $branch->phone ?? 'N/A' }} • Email: {{ $branch->email ?? 'N/A' }}

7-Day Working Schedule

@csrf @php $days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']; @endphp @foreach($days as $day) @php $wh = $branch->workingHours->where('day_of_week', $day)->first(); @endphp
{{ $day }}
to
@endforeach
@endforeach

Add New Branch Workspace

@csrf
@endsection