Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/backend/pages/about/index.blade.php
@extends('backend.ayaan.master')

@push('style')

@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header card-header-info card-header-icon">
          <h4 class="card-title">{{translate('About Table')}}</h4>
          <a class="btn btn-info float-right" href="{{url('b2b/about/add')}}">{{translate('ADD NEW')}}</a>
        </div>
        <div class="card-body">
          <div class="table-responsive">
            <table class="table">
              <thead>
                <tr>
                  <th class="text-center">#</th>
                  <th>{{translate('Title')}}</th>
                  <th>{{translate('Details')}}</th>
                  <th>{{translate('Link')}}</th>
                  <th class="text-right">{{translate('Actions')}}</th>
                </tr>
              </thead>
              <tbody>
                @php
                   $i = 0;
                @endphp
                @foreach ($abouts as $about)
                <tr>
                  <?php $i++; ?>
                  <td class="text-center">{{$i}}</td>
                  <td>{{$about['title']}}</td>
                  <td>{{Str::limit($about['details'],70)}}</td>
                  <td>{{$about['link']}}</td>
                  <td class="td-actions text-right">
                    @if ($about['status']==0)
                    <a  class="btn btn-info updateAboutStatus" title="Turn off / On" id="about-{{$about->id}}" about_id="{{$about->id}}" style="color: #fff">
                    <i class="material-icons" status="desable">toggle_off</i>
                    </a>
                    @else
                    <a  class="btn btn-info updateAboutStatus" title="Turn off / On" id="about-{{$about->id}}" about_id="{{$about->id}}" style="color: #fff">
                      <i class="fa fa-toggle-off" status="Active"></i>
                    </a>
                    @endif
                    <a href="{{url('b2b/about/edit',$about->id)}}"  class="btn btn-rose" title="Edit" style="color: #fff">
                      <i class="fa fa-toggle-on" status="Active"></i>
                    </a>
                    <a href="{{url('b2b/about/delete',$about->id)}}" name="about" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
                      <i class="fa fa-trash"></i>
                    </a>
                  </td>
                </tr>
                @endforeach
              </tbody>
            </table>
          </div>
        </div>
      </div>
  </div>
</div>
@stop

@push('script')
   
@endpush