
<a class="modal-effect btn btn-sm btn-danger" data-effect="effect-scale" data-toggle="modal" href="#modaldemo9{{$id}}" title="delete">
        {{$label??''}} 
</a>
<div class="modal" id="modaldemo9{{$id}}">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content modal-content-demo">
             
                <div class="modal-header">
                    <h6 class="modal-title">{{$label}} </h6><button aria-label="Close" class="close" data-dismiss="modal"
                        type="button"><span aria-hidden="true">&times;</span></button>
                </div>
                  
                    <div class="modal-body">
                        <?php
                          $arr=[];
                          foreach ($booking->tickets as $ticket) {
                              $refund= $ticket->amountRefunded('R');
                              array_push($arr,$refund);
                            }
                            // dd(array_sum($arr));
                            
                            ?>
                        <p> Are you {{$label}} @if($label=='Refund')  {{formatprice(array_sum($arr)) }} @endif</p><br>
                    </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">الغاء</button>
                   <a  href="{{ $href }}" class="{{ $class }}" onclick="hideModal()"> <i class="fa fa-{{$icon}}"></i> {{$label??''}} </a>
                </div>
        </div>
    </div>
</div>