Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/contact-queries/index.blade.php
@extends('layouts.backend')
    @section('content')  
<!-- Container Fluid-->
            <div class="row">
                <div class="col-lg-12">
                  <!-- Form Basic -->
                  <div class="card mb-4">
                    
                    <div class="card-header card-header-modify py-3 d-flex flex-row align-items-center justify-content-between">
                        <h6 class="m-0 font-weight-bold text-heading-bar">Contact Quiries</h6>
                       
                    </div>

                    <div class="card-body">
                          <table class="table table-bordered">
                            
                            <tr>
                               <th>No</th>
                               <th>Name </th>
                               <th>Company Name</th>
                               <th>Contact No</th>
                               <th>Email</th>
                               <th>Subject</th>
                               <th>Message</th>
                               <th width="280px">Action</th>
                             </tr>
                              
                              @if( isset($data) && !empty($data) )
                                @foreach ($data as $key => $d)
                                  
                                  <tr>                                  
                                      <td>{{ ++$i }}</td>
                                      <td>{{ $d->name }}</td>
                                      <td>{{ $d->company_name }}</td>
                                      <td>{{ $d->contact_no }}</td>
                                      <td>{{ $d->email }}</td>
                                      <td>{{ $d->subject }}</td>
                                      <td>{{ $d->message }}</td>

                                      
                                      <td>

                                        <a class="btn btn-primary btn-sm" href="{{ route('contact-queries.show',$d->id) }}"  data-toggle="tooltip" data-placement="left" title="View"><i class="fas fa-eye"></i></a>

                                     <!--  <a class="btn btn-primary btn-sm" href="{{ route('contact-info.edit',$d->id) }}"  data-toggle="tooltip" data-placement="left" title="Edit"><i class="fas fa-edit"></i></a> -->
                                       
                                        
                                        <a class="btn btn-danger btn-sm show-modal" href="#" data-toggle="tooltip" data-placement="top" title="Delete" value-id="{{$d->id}}" value-title="Delete" message= "Are you sure? You want to delete ?" method="Post" action="contact-queries" ><i class="fa fa-trash fa-lg" aria-hidden="true"></i></a>

                                        @if($d->status == 1)

                                            <a class="btn btn-danger btn-sm show-modal" href="#" data-toggle="tooltip" data-placement="top" title="Inactive" value-id="{{$d->id}}" value-title="Inactive" message= "Are you sure? You want to inactive ?" method="get" action="contact-queries-active-inactive" ><i class="fa fa-times" aria-hidden="true"></i></a>

                                        @else

                                               
                                             <a class="btn btn-success btn-sm show-modal" href="#" data-toggle="tooltip" data-placement="top" title="Active" value-id="{{$d->id}}" value-title="Active"  message="Are you sure? You want to active ?" method="get" action="contact-queries-active-inactive"><i class="fa fa-check-circle" aria-hidden="true"></i></a>

                                        @endif
                                    
                                    </td>


                                  </tr>

                               @endforeach
                            @endif

                        </table>
                        <br/>
                        {!! $data->render() !!}
                    </div>
                  </div>
                
              </div>
            </div>
          <!--Row-->


    @endsection