 

<?php $__env->startSection('content'); ?>


<main class="h-full pb-16 overflow-y-auto">
          <div class="container px-6 mx-auto grid">
            <h2
              class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
            >
              
            </h2>
            <!-- CTA -->
            <a
              class="flex bg-blue-600 items-center justify-between p-4 mb-8 text-sm font-semibold shadow-md focus:outline-none focus:shadow-outline-green"
              href="<?php echo e(url('/')); ?>" style="color: #fff;"
            >
              <div class="flex items-center">
                <svg
                  class="w-5 h-5 mr-2"
                  fill="currentColor"
                  viewBox="0 0 20 20"
                >
                  <path
                    d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
                  ></path>
                </svg>
                <span>Go to main website</span>
              </div>
              <span>View &RightArrow;</span>
            </a>

           

            <!-- Responsive cards -->
            <div class="mb-4">
                <h4
                  class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
                >
                <span class="text-blue-500">Testi</span>monials 
                </h4>
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.alert','data' => []]); ?>
<?php $component->withName('alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            </div>
                
        <div class="mb-4">
            <a href="<?php echo e(route('admin.add_testimonial')); ?>" class="group bg-blue-600 block max-w-xs mx-auto p-6 bg-whitering-1 ring-gray-900/5 shadow-lg space-y-3 hover:bg-sky-500 hover:ring-sky-500">
                  <div class="flex items-center space-x-3">
                <svg xmlns="http://www.w3.org/2000/svg" class="text-white dark:text-gray-300 h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
                  <path fill-rule="evenodd" d="M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z" clip-rule="evenodd" />
                </svg>
                <h3 class="text-white dark:text-gray-300 font-semibold">New Testimonial</h3>
              </div>
              <small class="text-gray-900">Create a new Testimonial.</small>
            </a>
        </div>
            
            
            <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-3 mt-3">
            <?php $__empty_1 = true; $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $testimonial): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
              <div
                class="p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
              >
                <div class="relative w-10">
                  <div class="absolute left-0 top-0 h-16 w-16 p-2" style="background-color: purple !important; border-radius:50%;"><a href="<?php echo e($testimonial->instagram); ?>"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg></a>
                  </div>
                </div>
                <div class="relative w-10">
                  <div class="absolute top-0 right-0 h-16 w-16 p-2" style="background-color: blue !important; border-radius:50%;">
                      <a href="<?php echo e($testimonial->facebook); ?>">
                      <svg xmlns="http://www.w3.org/2000/svg" width="27" height="27" viewBox="0 0 24 24"><path d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2 10h-2v2h2v6h3v-6h1.82l.18-2h-2v-.833c0-.478.096-.667.558-.667h1.442v-2.5h-2.404c-1.798 0-2.596.792-2.596 2.308v1.692z"/></svg>
                      </a>
                  </div>
                </div>
                <div
                  align="center" class="rounded-full">
                  <?php if($testimonial->image != null): ?>
                  <img src="<?php echo asset('storage/images/'.$testimonial->image); ?>" alt="Testifier photo" style="height: 100px !important; width:100px; border-radius: 50%; border: 2px solid #e4ab0d; object-fit: cover;">
                  <?php else: ?>
                  <img src="<?php echo asset('assets/img/download.png'); ?>" alt="Testifier photo" style="height: 100px !important; width:100px; border-radius: 50%; border: 2px solid #e4ab0d;">
                  <?php endif; ?>
                </div>
                <div
                  align="center" class="mt-2 pt-2">
                    <small class="text-gray-600 dark:text-gray-400"><i>-<?php echo e($testimonial->first_name); ?> <?php echo e($testimonial->last_name); ?></i></small>
                  <p
                    class="mb-2 mt-4 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                  <?php echo e($testimonial->content); ?>

                  </p>
                      <div class="p-3">
                          <a class="flex px-5 py-3 font-medium leading-5 text-white transition-colors duration-150 border border-transparent rounded-lg active:bg-green-500 hover:bg-green-700 focus:outline-none focus:shadow-outline-green"
  href="<?php echo e(route('admin.testimonial_edit', $testimonial->id)); ?>" style="color: #e4ab0d;"
                          >
                          Edit 
                            <svg xmlns="http://www.w3.org/2000/svg" class="h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
                            </svg>
                        </a>
                        <form action="<?php echo e(route('admin.testimonial_destroy', $testimonial->id)); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('delete'); ?>
                            <button type="submit" class="px-5 py-3 ml-4 font-medium leading-5 text-white transition-colors duration-150 border border-transparent rounded-lg text-red-600 dark:text-red-400" onclick="return confirm('Dear Admin, Are you sure you want to delete this Testimonial?');"
                              >
                            <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
                            </svg>
                          </button>
                        </form>
                    </div>
                </div>
              </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
              <div class="p-4">
                  <h5 class="text-gray-700 dark:text-gray-200">You have no testimonials yet!</h5>
              </div>
              <?php endif; ?>
              
            </div>

             
          </div>
        </main>
        
        
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\jango\resources\views/admin/testimonials.blade.php ENDPATH**/ ?>