 

<?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">Board O</span>F Directors 
                </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_bod')); ?>" 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 Board Of Director</h3>
              </div>
              <small class="text-gray-900">Create a new Director.</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 = $directors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $director): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
              <div
                class="py-4 px-2 bg-white rounded-lg shadow-xs dark:bg-gray-800"
              >
                
                <div
                  align="center" class="rounded-full">
                  <?php if($director->image != null): ?>
                  <img src="<?php echo asset('storage/images/'.$director->image); ?>" alt="Director photo" style="height: 100px !important; width:100px; border-radius: 50%; border: 2px solid #e4ab0d; object-fit: cover;">
                  <?php else: ?>
                  <img src="<?php echo asset('asset/img/download.png'); ?>" alt="Director 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($director->name); ?></i></small>
                  <p
                    class="mb-2 mt-4 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                  <?php echo e($director->position); ?>

                  </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.edit_bod', $director->id)); ?>" style="color: blue;"
                          >
                          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.destroy_bod', $director->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 Director?');"
                              >
                            <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 directors 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 /home/jangodri/public_html/resources/views/admin/bod.blade.php ENDPATH**/ ?>