<!DOCTYPE html>
<html lang="ar" >
<head>
    <meta charset="UTF-8">
    <title>Dashboard</title>
    <link rel="stylesheet" href="<?php echo e(asset('style.css')); ?>">
    <!--script src="https://jsdelivr.net"></script-->
    <link rel="stylesheet" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css">

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>


<script>
    $(document).ready(function(){
        $('.datepicker').datepicker({
            format: 'yyyy-mm-dd',
            autoclose: true,
            todayHighlight: true
        });
    });

</script>
</head>
<body>
   
    <div class="dashboard-container">
        <!-- Sidebar -->
        <aside class="sidebar">
            <div class="logo">
                
                <span>
                    وزارة الصحة الإتحادية
                </span>
                <img src="<?php echo e(asset('build/assets/logo-fmoh2.png')); ?>" alt="شعار الوزارة" 
                style="height:70px;border-radius: 40px;margin-top: -40px;" class="me-2" align="left">
                <div style="margin-top: 45px;">
                     منصة التعاون الدولي الصحي
                </div>
             

          

                </div>
            <hr style="margin-top: 20px;">
              <?php echo $__env->make('layouts.navigationUser', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
               
             <form method="POST" action="<?php echo e(route('logout')); ?>">
                            <?php echo csrf_field(); ?>

                            <?php if (isset($component)) { $__componentOriginal68cb1971a2b92c9735f83359058f7108 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal68cb1971a2b92c9735f83359058f7108 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-link','data' => ['href' => route('logout'),'onclick' => 'event.preventDefault();
                                                this.closest(\'form\').submit();','style' => 'color: red;']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dropdown-link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('logout')),'onclick' => 'event.preventDefault();
                                                this.closest(\'form\').submit();','style' => 'color: red;']); ?>
                                <?php echo e(__('Log Out')); ?>

                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $attributes = $__attributesOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__attributesOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal68cb1971a2b92c9735f83359058f7108)): ?>
<?php $component = $__componentOriginal68cb1971a2b92c9735f83359058f7108; ?>
<?php unset($__componentOriginal68cb1971a2b92c9735f83359058f7108); ?>
<?php endif; ?>
                        </form>
        </aside>

        <!-- Main Content -->
      <?php echo $__env->make('layouts.readingUser', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            
                    <?php if(session()->has('success')): ?>
                        <div class="alert alert-success">
                            <span class="text-green font-bold"><?php echo e(session('success')); ?></span>
                        </div>
                    <?php endif; ?>
            <!-- Charts Row -->
         

            <section class="charts-grid" style="margin-top: 40px;">
              <?php if($errors->any()): ?>
                    <div class="alert alert-danger" style="width: 440px;">
                        <ul>
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><?php echo e($error); ?></li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                <?php endif; ?>
                <div class="form-container" style="width: 675px"> 
        <h3 class="mb-4"  >  تسجيل هبة جديدة  </h3>
        <form action="<?php echo e(route('donations.store')); ?>" method="POST">
                <?php echo csrf_field(); ?>

        <div class="mb-3">
            <label class="form-label">اسم الهبة</label>
            <input type="hidden" value="<?php echo e(Auth::user()->referencesUser); ?>" name="organization_id" class="form-control" required>
            <input type="hidden" value="<?php echo e(Auth::user()->id); ?>" name="user_id" class="form-control" required>
            <input type="text" name="donation_title" class="form-control" required>
        </div>

         <div class="mb-3">
            <label class="form-label"> القطاع </label>
            <select name="sector_id" class="form-control" required>
                 <option value="0" selected>-------القطاع-----</option>
                 <?php $__currentLoopData = $sectors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sector): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option <?php if($sector->id == @$Patient_Data->StateID): echo 'selected'; endif; ?> value="<?php echo e($sector->id); ?>" ><?php echo e($sector->sectorName); ?></option>
                 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>

        <div class="mb-3">
            
            <input type="hidden" name="donation_type" value="مالية" class="form-control datepicker">
        </div>

        <div class="mb-3">
            <label class="form-label">  تاريخ الهبة   </label>
            <input type="text" name="donation_date" class="form-control datepicker">
        </div>

        <div class="mb-3">
            <label class="form-label">  العدد   </label>
            <input type="text" name="quantity" class="form-control datepicker">
        </div>


        <div class="mb-3">
            <label class="form-label"> التكلفة </label>
            <input type="text" name="donation_amount" class="arabicNumbers form-control">
        </div>

         <div class="mb-3">
            <label class="form-label"> العملة </label>
            <select name="currency" class="form-control" required>
                <option value="USD">دولار أمريكي</option>
                <option value="EUR">يورو</option>
                <option value="SDG">جنيه سوداني</option>
                <option value="SAR">ريال سعودي</option>
            </select>
        </div>

        <button type="submit" class="btn btn-success">حفظ</button>
    </form>
</div>

                </div>
               
            </section>
        </main>
    </div>
</body>

</html>

<?php echo $__env->make('layouts.app2', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/moh-portal/resources/views/donations/create.blade.php ENDPATH**/ ?>