@extends('layouts.appv2') @section('content')

Takwim Management

{{-- Add Sections --}}
{{-- Add New Holiday --}}

Add New Holiday

@csrf
{{-- Add New Weekend --}}

Add New Weekend (Select Weekdays)

@csrf
@php $weekDays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', 'No Weekend']; @endphp @foreach($weekDays as $day)
@endforeach
{{-- Add New State --}}

Add New State

@csrf
{{-- Assign Sections --}}
{{-- Assign Weekend to State --}}

Assign Weekend to State

@csrf
{{-- Assign Holiday to State --}}

Assign Holiday to State

@csrf
{{-- Summary Display --}}

States & Assigned Weekends and Holidays

@foreach($states as $state)
{{ $state->name }}

Total Weekends Assigned: {{ $state->weekend ? 1 : 0 }}

Total Holidays Assigned: {{ $state->holidays->count() }}

Weekend List:

    @if ($state->weekend)
  • {{ $state->weekend->name }} — {{ $state->weekend->days }}
  • @else
  • No weekends assigned.
  • @endif

Holiday List:

    @forelse($state->holidays as $holiday)
  • {{ $holiday->name }} — {{ $holiday->date }} (Duration: {{ $holiday->pivot->duration_days }} days)
  • @empty
  • No holidays assigned.
  • @endforelse
@endforeach
@if (session('success')) @endif @if (session('error')) @endif @endsection