@extends('backend.layouts.app') @section('content')
@php if(isset($tournaments) && $tournaments->count() > 0){ $selected_tour = request()->tour?request()->tour:$tournaments->last()->id; }else{ $selected_tour = null; } if(count($slot_dates) > 0){ $selected_date = request()->date?request()->date:$slot_dates[0]; }else{ $selected_date = null; } @endphp
{{--
@php $membership_no_search = request()->membership_no_search ? request()->membership_no_search:""; @endphp
--}}

@if($selected_tour && $selected_date) @php $remaining_slots = 0; $total_memberships = 0; @endphp

Remaining Slots: . Total Registration: .

@foreach($tournament_tee_slots as $slot) @foreach($slot->registrations as $registration) @php $total_memberships += $registration->membership_no? 1:0; @endphp @endforeach @endforeach
Flgt No. Tee Off Time Tee Category M/S No Golfer Name Action Remainig Slots
registrations && $slot->registrations->count() > 0) rowspan="{{$slot->registrations->count()+1}}" @endif>{{$loop->index + 1}} registrations && $slot->registrations->count() > 0) rowspan="{{$slot->registrations->count()+1}}" @endif> {{date('g:i A', strtotime($slot->slot_start))}} - {{date('g:i A', strtotime($slot->slot_end))}} registrations && $slot->registrations->count() > 0) rowspan="{{$slot->registrations->count()+1}}" @endif> {{($slot->slot_player_allow - get_remaining_slot($slot->id))}}
@php $remaining_slots += ($slot->slot_player_allow - get_remaining_slot($slot->id)); @endphp
{{ $registration->tee_category?$registration->tee_category->name:'' }} {{$registration->membership_no}} {{$registration->golfer_name}}
@endif
@endsection @section('modal_content') @if($selected_tour && $selected_date) @endif @endsection @section('page_script') @endsection