]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
projecthelpglobal.com
/
resources
/
views
/
admin
/
clients
/
Upload FileeE
HOME
@extends("layouts.admin_app") @section("pageTitle",' Sliders List') @section('MainContent') <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Sliders</h1> <a href="{{route('clients.create')}}" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm"> <i class="fas fa-plus fa-sm text-white-50"></i> Create Sliders </a> </div> <div class="row"> <div class="card shadow mb-4" style="width: 100%;"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-primary">All Sliders</h6> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> <thead> <tr> <th>Id</th> <th>Image</th> <th>Serial No</th> <th>Action</th> </tr> </thead> <tbody> @foreach($clients as $key=>$value) <tr> <td>{{$key+1}}</td> <td>@if(isset($value->image)) <img id="imagesrc" src="{{asset('image/clients/'.$value->image)}}" style="height:100px;width:100px;border-radius:50px"> @else <a href="{{asset('image/dymmy.jpg')}}" id="ahref" target="_blank"> <img id="imagesrc" src="{{asset('image/dymmy.jpg')}}" style="height:60px;width:60px;border-radius:50px"></a> @endif </td> <td>{{$value->srno}}</td> <td> <a data-toggle="tooltip" data-placement="top" title="Edit Clients Details" href="{{route('clients.edit',$value->id)}}" class="btn btn-sm btn-outline-primary btn-icon"><i class="fa fa-edit"></i></a> <a data-toggle="tooltip" data-placement="top" title="Delete Clients" href="javascript:void('0')" class="btn btn-sm btn-outline-danger btn-icon"><i class="fa fa-trash" onclick="ChangeStatus({{$value->id}},'trash')"></i></a> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> @endsection @section('MainCss') @endsection @section('MainJS') <script> $(document).ready(function() { $('#dataTable').DataTable(); }); </script> <script type="text/javascript"> function ChangeStatus(CatId,statusType){ var url = "{{ route('clients.show', ':id') }}?update="+statusType; url = url.replace(':id', CatId); window.location.href=url; } </script> @endsection