<div class="modal fade" id="editMatchModal" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"><?php echo e(__('Edit Match')); ?></h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
            </div>
            <div class="modal-body">
                <form id="editMatchForm">
                    <input type="hidden" name="match_id" id="editMatchId">
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Team A')); ?></label>
                        <select name="team_a_id" class="form-select team-a-select" id="editTeamA">
                            <option value=""><?php echo e(__('TBD')); ?></option>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Team B')); ?></label>
                        <select name="team_b_id" class="form-select team-b-select" id="editTeamB">
                            <option value=""><?php echo e(__('TBD')); ?></option>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Stage')); ?></label>
                        <select name="stage" class="form-select" id="editStage">
                            <?php $__currentLoopData = \App\Enums\ChampionshipMatchStageEnum::options(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $opt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($opt['value']); ?>"><?php echo e($opt['label']); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Match Date')); ?></label>
                        <input type="date" name="match_date" class="form-control" id="editMatchDate">
                    </div>
                    <div class="row">
                        <div class="col-6 mb-3">
                            <label class="form-label"><?php echo e(__('Start Time')); ?></label>
                            <input type="time" name="start_time" class="form-control" id="editStartTime">
                        </div>
                        <div class="col-6 mb-3">
                            <label class="form-label"><?php echo e(__('End Time')); ?></label>
                            <input type="time" name="end_time" class="form-control" id="editEndTime">
                        </div>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Court')); ?></label>
                        <select name="court_id" class="form-select" id="editCourtId">
                            <option value=""><?php echo e(__('Select Court')); ?></option>
                            <?php $__currentLoopData = $courts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $court): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($court->id); ?>"><?php echo e($court->name); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Parent Match')); ?></label>
                        <select name="parent_match_id" class="form-select" id="editParentMatchId">
                            <option value=""><?php echo e(__('None')); ?></option>
                            <?php $__currentLoopData = $championship->matches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($m->id); ?>">#<?php echo e($m->id); ?> <?php echo e($m->round ?? __('Match')); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Round Label')); ?></label>
                        <input type="text" name="round" class="form-control" id="editRound">
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Sort Order')); ?></label>
                        <input type="number" name="sort_order" class="form-control" id="editSortOrder" min="0">
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo e(__('Close')); ?></button>
                <button type="button" class="btn btn-primary" id="updateMatchBtn"><?php echo e(__('Update Match')); ?></button>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /home/takwgzfj/montsportscamp.com/resources/views/admin/championships/show/partials/modal-edit-match.blade.php ENDPATH**/ ?>