<?php $__env->startSection('content'); ?>
<div class="content-header row">
    <div class="content-header-left col-md-6 col-12 mb-2 breadcrumb-new">
        <h3 class="content-header-title mb-0 d-inline-block">اضافة موظف جديد</h3>
        <div class="row breadcrumbs-top d-inline-block">
            <div class="breadcrumb-wrapper col-12">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="<?php echo e(route('employees')); ?>">الموظفين</a></li>
                </ol>
            </div>
        </div>
    </div>
</div>
<div class="content-body">
    <!-- Striped row layout section start -->
    <section id="striped-row-form-layouts">
        <div class="row">
            <div class="col-md-12">
                <div class="card">
                    <div class="card-header">
                        <h4 class="card-title" id="horz-layout-icons">اضافة موظف</h4>
                        <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
                        <div class="heading-elements">
                            <ul class="list-inline mb-0">
                                <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                                <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                                <li><a data-action="expand"><i class="ft-maximize"></i></a></li>
                                <li><a data-action="close"><i class="ft-x"></i></a></li>
                            </ul>
                        </div>
                    </div>
                    <style>/* سيؤثر هذا على جميع عناصر الـ select في التطبيق */
                        select {
                            text-transform: none;
                            width: 500px;
                            height: 40px;
                          }</style>
                    <div class="card-content collpase show">
                        <div class="card-body">
                            <form class="form form-horizontal striped-rows form-bordered" enctype="multipart/form-data" method="post" action="<?php echo e(route('employees.store')); ?>">
                                <?php echo csrf_field(); ?>
                                <div class="form-body">
                                    <div class="form-group row">
                                        <label class="col-md-3 label-control" for="name">اسم الموظف</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" required class="form-control" placeholder="الاسم بالكامل " name="name" value="<?php echo e(old('name')); ?>">
                                                <div class="form-control-position">
                                                    <i class="la la-user"></i>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-md-3 label-control" for="fingerprint_code">كود البصمة</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" required class="form-control" placeholder="كود البصمة" name="fingerprint_code" value="<?php echo e(old('fingerprint_code')); ?>">
                                                <div class="form-control-position">
                                                    <i class="la la-user-secret"></i>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-md-3 label-control" for="email">البريد الإلكتروني</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="email" class="form-control" placeholder="البريد الإلكتروني" name="email" value="<?php echo e(old('email')); ?>">
                                                <div class="form-control-position">
                                                    <i class="la la-envelope"></i>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-md-3 label-control" for="phone">رقم الهاتف</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" class="form-control" placeholder="رقم الهاتف" name="phone" value="<?php echo e(old('phone')); ?>">
                                                <div class="form-control-position">
                                                    <i class="la la-phone"></i>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-md-3 label-control" for="position">الوظيفة</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" required class="form-control" placeholder="الوظيفة" name="position" value="<?php echo e(old('position')); ?>">
                                                <div class="form-control-position">
                                                    <i class="la la-briefcase"></i>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
<div class="form-group row">
    <!-- حقل القسم (النصف الأيسر) -->
    <div class="col-md-4">
        <label class="label-control" for="department_id">القسم</label>
        <div class="position-relative has-icon-left">
            <select class="form-control" name="department_id">
                <option value="">اختر القسم</option>
                <?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($department->id); ?>" <?php echo e(old('department_id') == $department->id ? 'selected' : ''); ?>>
                    <?php echo e($department->name); ?>

                </option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <div class="form-control-position">
                <i class="la la-sitemap"></i>
            </div>
        </div>
    </div>

    <!-- حقل الفرع (النصف الأيمن) -->
    <div class="col-md-4">
        <label class="label-control" for="branch_id">الفرع</label>
        <div class="position-relative has-icon-left">
            <select class="form-control" name="branch_id">
                <option value="">اختر الفرع</option>
                <?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($branch->id); ?>" <?php echo e(old('branch_id') == $branch->id ? 'selected' : ''); ?>>
                    <?php echo e($branch->name); ?>

                </option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            <div class="form-control-position">
                <i class="la la-building"></i>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <label class="col-md-3 label-control" for="shift_id">الشيفت</label>

            <div class="position-relative has-icon-left">
                <select class="form-control" name="shift_id" required>
                    <option value="">اختر الشيفت</option>
                    <?php $__currentLoopData = $shifts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $shift): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($shift->id); ?>" <?php echo e(old('shift_id') == $shift->id ? 'selected' : ''); ?>>
                            <?php echo e($shift->name); ?> (من <?php echo e(date('H:i', strtotime($shift->time_in))); ?> إلى <?php echo e(date('H:i', strtotime($shift->time_out))); ?>)
                        </option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <div class="form-control-position">
                    <i class="la la-clock-o"></i>
                </div>

        </div>
    </div>
</div>

<br><br>


                                    <div class="form-group row">
                                        <label class="col-md-3 label-control" for="photo">صورة الموظف</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="file" class="form-control" name="photo">
                                                <div class="form-control-position">
                                                    <i class="la la-camera"></i>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-md-3 label-control">ملاحظات</label>
                                        <div class="col-md-9">
                                            <textarea class="form-control" name="note" rows="3"></textarea>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-actions right">
                                    <button type="submit" class="btn btn-primary">
                                        <i class="la la-check-square-o"></i> حفظ
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>

<?php $__env->stopSection(); ?>

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


<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\icsc.industry.gov.iq\resources\views/admin/employees/create.blade.php ENDPATH**/ ?>