
<meta name="csrf-token" content="{{ csrf_token() }}">

<div class="row">
  <div class="col-12">
    <div class="">
      <!-- Card header -->
      <div class="card-header pb-0">
        <div class="d-lg-flex">
          <div>
            <h5 class="mb-0">Daily Missions</h5>
          </div>
          <div class="ms-auto my-auto mt-lg-0 mt-4">
          <div class="ms-auto my-auto">
                <!--<a href="#" class="btn bg-gradient-info btn-sm mb-0 addSocialLink">+&nbsp; ADD NEW</a>-->
              </div>
          </div>
        </div>
      </div>
      <div class="card-body px-0 pb-0">
        <div class="table-responsive">
          <table class="table table-flush" id="data-list">
            <thead class="thead-light">
              <tr>
                <th>ID</th>
                <th>Icon</th>
                <th>Title</th>
                <th>Button Name</th>
                <th>Coin</th>
                <th>Promo Coin</th>
                <th>Edit</th>
              </tr>
            </thead>
            <tbody>
              @if(count($data) > 0)
              @foreach($data as $item)
              <tr id="{{$item->id}}">
                <td class="text-sm">
                  <div class="form-check my-auto">
                      {{$item->id}}
                  </div>
                </td>
                <td class="text-sm">
                    <span class="my-2 text-xs">
                            <img src="{{ url('images/'.$item->image)}}"  class="avatar avatar-xl shadow">
                    </span>
                </td>
                <td class="text-sm">{{$item->title}}</td>
                <td class="text-sm">{{$item->btn_name}}</td>
                <td class="text-sm">{{$item->coin}}</td>
                <td class="text-sm">{{$item->promo_coin}}</td>
                <td class="text-sm">
                    
                  <a href="#" class="mx-3 editMission" data-bs-toggle="tooltip" id="{{$item->id}}"  data-bs-original-title="Edit">
                    <i class="fas fa-edit text-success"></i>
                  </a>
                </td>
              </tr>
              @endforeach
              @else
              <tr>no content </tr>
              @endif
            </tbody>
          </table>
          <div class="d-flex" style="margin-left: 30px;">
          <!--<button class="btn btn-outline-dark sub_chk_all"> Select All </button>-->
   
            <!-- <button class="btn btn-icon btn-outline-dark ms-2 export" data-type="csv" type="button">
              <span class="btn-inner--icon"><i class="ni ni-archive-2"></i></span>
              <span class="btn-inner--text">Export CSV</span>
            </button> -->
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
