Current File : /home/tradevaly/public_html/resources/views/user/pages/advertiser/active.blade.php
@extends('user.ayaan.master')'
@push('title','Advertiser')

@section('title') Income Lists @endsection
@section('css')
    <!-- DataTables -->
    <link href="{{ asset('/assets/libs/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
@endsection
@section('content')

    @component('components.breadcrumb')
        @slot('li_1') Dashboards @endslot
        @slot('title') Advertiser @endslot
    @endcomponent
 <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    

                    <div class="table-responsive">
                    <table class="table" id="datatable-buttons">
                      <thead>
                        <tr>
                          <th class="text-center">#</th>
                          <th>{{translate('Duration')}}</th>
                          <th>{{translate('Amount')}}</th>
                          <th>{{translate('Advertiser Name')}}</th>
                          <th> Expire Date </th>
                          <th>{{translate('Payment Status')}}</th>
                          <th>{{translate('Status')}}</th>
                        </tr>
                      </thead>
                      <tbody>
                       
                        @foreach ($advertisers as $advertiser)
                        <tr>
                          
                          <td class="text-center">{{$loop->iteration}}</td>
                          <td>
                              {{$advertiser->duration}} Month
                          </td>
                          <td>
                              {{$advertiser->amount}}
                          </td>
                          <td>
                              {{ $advertiser->advertiser_name }}
                          </td>
                          <td>
                              <span class="badge bg-info"> {{ \Carbon\Carbon::parse($advertiser->start_date)->format('d/m/Y H:i A')}} </span> To <span class="badge bg-info"> {{ \Carbon\Carbon::parse($advertiser->expire_date)->format('d/m/Y H:i A')  }}</span>
                            
                          </td>
                          <td>
                             {{ $advertiser->payment_status }}
                          </td>
                          <td>
                             {{ $advertiser->status }}
                          </td>
                        </tr>
                        @endforeach
                      </tbody>
                    </table>
         </div>
                    
                </div>
            </div>
        </div>
    </div>
    <!-- end row -->
@endsection
@section('script')
    <!-- Required datatable js -->
    <script src="{{ asset('/assets/libs/datatables/datatables.min.js') }}"></script>
    <script src="{{ asset('/assets/libs/jszip/jszip.min.js') }}"></script>
    <script src="{{ asset('/assets/libs/pdfmake/pdfmake.min.js') }}"></script>
    <!-- Datatable init js -->
     
    <script type="text/javascript">
  $(function () {
    
    
    
    
    $(document).ready(function () {
 
  var table = $('#datatable-buttons').DataTable({
    lengthChange: false,
    processing: true,
    dom: 'Bfrtip',
        
    buttons: ['copy', 'excel', 'pdf', 'colvis']
  });
  table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
  $(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
@endsection