@extends(branchMenu())
@section('content')
<?php Fun::lang()?>
<?php $total = 0?>
<div class="top-header">
    <ol class="breadcrumb">
      <li><a href="#">{{__('administrator.Dashboard')}}</a></li>
      <li><a href="{{route('category.index')}}">{{__('administrator.customer_payment')}} </a></li>
      <li class="active">{{__('administrator.customer_payment')}}</li>
    </ol>
</div>
<div class="page">
<div class=container-fluid>
    <div class="top-content">
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                <div class="title-add">
                    <div class="pull-left">
                        <h3>{{__('administrator.customer_payment')}}</h3>
                    </div>
                   
                </div>
            </div>
        </div>
    </div>
    <div class="list-detail">
       <div class="col-sm-12">
            <div class="summary-footer">
                <div class="list">
                    <label class="left">{{__('administrator.invoice')}} :</label>
                    <label class="right">{{$payment->payment_invoice}}</label>
                </div>
                <div class="list">
                    <label class="left">{{__('administrator.date')}} :</label>
                    <label class="right">{{$payment->payment_date}}</label>
                </div>
                
            </div>
       </div>
    </div>
     <div class="wrapper-table">
        <table  width="100%" class="table table-striped table-hover ">
             <thead>
                <tr>
                    <th>#</th>
                     <th>{{__('administrator.date')}}</th>
                    <th>{{__('administrator.refund')}}</th>
                   
                </tr>
            </thead>
            <tbody>
               @foreach($data as $key => $value)
                <?php $total += $value->payment_refunds;?>
                <tr>
                    <td>{{$key+1}}</td>
                    <td>{{date('d-m-Y',strtotime($value->payment_date))}}</td>
                    <td>${{number_format($value->payment_refunds,2)}}</td>
                    
                </tr>
               @endforeach
            </tbody>
            <tfoot>
                <tr>
                    <th></th>
                    <th></th>
                    <th class="green">${{number_format($total,2)}}</th>
                </tr>
            </tfoot>
        </table>
    </div>
</div>


@endsection








    

