@extends('backend.layouts.app') @section('content')
@php $selected_year = request()->year?request()->year:date('Y'); 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:null; }else{ $selected_date = null; } @endphp

@if($selected_year && $selected_tour) Print
@php $totalForSelection = 0; $paidPersons = 0; $duePersons = 0; @endphp @foreach($registrations as $row) @php $totalForSelection++; if(($row->reg_bill - $row->paid) > 0){ $duePersons++; }else{ $paidPersons++; } @endphp @endforeach

Tournament: {{$tournament_info->tour_name}}

SL Member Cat. Tee Category M. ID Name Amount Paid Paid Date Pay. Method Due Action
{{ $loop->index + 1 }} {{ $row->member_type }} {{ $row->tee_category?$row->tee_category->name:'' }} {{ $row->membership_no }} {{ $row->golfer_name }} {{ number_format($row->reg_bill, 2) }} {{ number_format($row->paid, 2) }} {{ $row->paid_date }} {{ $row->payment_method_info?$row->payment_method_info->name:'' }} {{ number_format($row->reg_bill - $row->paid, 2) }}
Total {{ number_format($registrations->sum('reg_bill'), 2) }} {{ number_format($registrations->sum('paid'), 2) }} {{ number_format($registrations->sum('reg_bill') - $registrations->sum('paid'), 2) }}
Registered Persons: {{ $totalForSelection }}, Playing Persons: {{ $paidPersons }}, Absent Persons: {{ $duePersons }}
@endif
@endsection @section('modal_content') @if(isset($tournament_info) && $tournament_info) @endif @endsection @section('before_body_end') @endsection