@extends('admin.layout')

@php
$selLang = \App\Language::where('code', request()->input('language'))->first();
@endphp

@section('styles')
<link rel="stylesheet" type="text/css" href="{{asset('assets/admin/css/daterangepicker.css')}}" />
@if(!empty($selLang) && $selLang->rtl == 1)
<style>
    form:not(.modal-form) input,
    form:not(.modal-form) textarea,
    form:not(.modal-form) select,
    select[name='language'] {
        direction: rtl;
    }
    form:not(.modal-form) .note-editor.note-frame .note-editing-area .note-editable {
        direction: rtl;
        text-align: right;
    }
</style>
@endif
@endsection


@section('content')
  <div class="page-header">
    <h4 class="page-title">حملة الرياضيين للولايات المتضررة باعصار شاهين</h4>
    <ul class="breadcrumbs">
      <li class="nav-home">
        <a href="{{route('admin.dashboard')}}">
          <i class="flaticon-home"></i>
        </a>
      </li>
      <li class="separator">
        <i class="flaticon-right-arrow"></i>
      </li>
      <li class="nav-item">
        <a href="#">حملة الرياضيين للولايات المتضررة باعصار شاهين</a>
      </li>
    </ul>
  </div>
  <div class="row">
    <div class="col-md-12">

      <div class="card">
        <div class="card-header">
            <div class="row">
                <div class="col-lg-4">
                    <div class="card-title d-inline-block">حملة الرياضيين للولايات المتضررة باعصار شاهين</div>
                </div>
            </div>
        </div>
        <div class="card-body">
          <div class="row">
            <div class="col-lg-12">
              @if (count($athletes_campaigns) == 0)
                <h3 class="text-center">NO Records</h3>
              @else
                <div class="table-responsive">
                  <table class="table table-striped mt-3" id="basic-datatables">
                    <thead>
                      <tr>
                        <th scope="col">الاسم</th>
                        <th scope="col">الجنس</th>
                        <th scope="col">العمر</th>
                        <th scope="col">الجهة التابعة لها</th>
                        <th scope="col">رقم الهاتف</th>
                        <th scope="col">الايميل</th>
                        <th scope="col">الايام</th>
                        <th scope="col">قياس الملابس</th>
                        <th scope="col">مكان الاقامة</th>
                        <th scope="col">التاريخ</th>
                      </tr>
                    </thead>
                    <tbody>
                      @foreach ($athletes_campaigns as $key => $athletes_campaign)
                        <tr>

                            <td>{{convertUtf8($athletes_campaign->name)}}</td>
                            <td>{{convertUtf8($athletes_campaign->gender)}}</td>
                            <td>{{convertUtf8($athletes_campaign->age)}}</td>
                            <td>{{convertUtf8($athletes_campaign->work)}}</td>
                            <td>{{convertUtf8($athletes_campaign->phone)}}</td>
                            <td>{{convertUtf8($athletes_campaign->email)}}</td>
                            <td>{{convertUtf8($athletes_campaign->days)}}</td>
                            <td>{{convertUtf8($athletes_campaign->size)}}</td>
                            <td>{{convertUtf8($athletes_campaign->city)}}</td>
                            <td>{{($athletes_campaign->created_at)}}</td>
                        </tr>
                      @endforeach
                    </tbody>
                  </table>
                </div>
              @endif
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>



@endsection

@section('scripts')
<script type="text/javascript" src="{{asset('assets/admin/js/plugin/daterangepicker/moment.min.js')}}"></script>
<script type="text/javascript" src="{{asset('assets/admin/js/plugin/daterangepicker/daterangepicker.js')}}"></script>

@endsection
