<?php $__env->startSection('pageTitle'); ?> <?php echo $__env->make('layouts.includes.title', ['moduleTitle' => __('locale.staff')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?>

<?php if(isset($staff) && isset($isTeacherProfile)): ?>
<?php $__env->startSection('pageBreadcrumb'); ?> <?php echo $__env->make('layouts.includes.breadcrumb', ['moduleTitle' => __('locale.edit').' '.__('locale.profile') ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?>

<?php else: ?>
<?php $__env->startSection('pageBreadcrumb'); ?> <?php echo $__env->make('layouts.includes.breadcrumb', ['moduleTitle' => __('locale.add').' '.__('locale.staff') ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?>
<?php endif; ?>

<?php $__env->startSection('quick_link'); ?>
<?php $__env->startSection('quick_link'); ?>
    <a href="<?php echo e(route($moduleName.'.index')); ?>" class="btn btn-info btn-labeled" title="<?php echo e(__('locale.list')); ?>"><b><i
                class="icon-list-unordered"></i></b><?php echo e(__('locale.list')); ?></a>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-sm-12">
            <div class="card-box">
                <?php echo $__env->make('layouts.modules.header', [ 'title' => __('Basic Information')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="card-body row">

                    <?php if(isset($staff) && isset($isTeacherProfile)): ?>
                        <?php echo Form::model($staff, ['route' => ['teacher-profile.update', $staff->id] ,'files' => true, "type" => "card" ]); ?>

                    <?php elseif(isset($staff)): ?>
                        <?php echo Form::model($staff, ['route' => [$moduleName.'.update', $staff->id] ,'files' => true, "type" => "card" ]); ?>

                    <?php else: ?>
                        <?php echo Form::open([ 'route' => $moduleName.'.store' ,'files' => true, "type" => "card"]); ?>

                    <?php endif; ?>
                        <?php echo Form::hidden('user_id', $staff->user->id ??  old('user_id')); ?>

                        <div class="row <?php echo e(\App\Facades\General::isSchoolAdmin() && !isset($isTeacherProfile) ? 'show' : 'hide'); ?> ">
                            <?php echo Form::openGroup('staff_id', 'staff::locale.staff_id'); ?>

                            <?php echo Form::text('staff_id', $staff->staff_id ?? old('staff_id')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('role', 'staff::locale.role' ,array("lbl_class" => "required")); ?>

                            <?php echo Form::select('role', $staff_roles,$staff->role ?? old('role'), array("required" => "true", 'class'=> 'mdl-textfield__input form-control','defaultTxt' => trans( 'locale.select' ) ) ); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('designation', 'staff::locale.designation'); ?>

                            <?php echo Form::select('designation_id', $designations,$staff->designation_id ?? old('designation_id'), array('class'=> 'mdl-textfield__input form-control','id' => 'designation_id','defaultTxt' => trans( 'locale.select' ) ) ); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('department', 'staff::locale.department' ); ?>

                            <?php echo Form::select('department_id', $departments,$staff->department_id ?? old('department_id'), array('class'=> 'mdl-textfield__input form-control','id' => 'department_id','defaultTxt' => trans( 'locale.select' ) ) ); ?>

                            <?php echo Form::closeGroup(); ?>

                        </div>
                    <div class="row">
                        <?php echo Form::openGroup('name', 'locale.name',array("lbl_class" => "required")); ?>

                        <?php echo Form::text('name',$staff->user->name ?? old('name'),array("required" => true)); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('mobile_number', 'staff::locale.mobile_number'); ?>

                        <?php echo Form::text('mobile_number',$staff->user->mobile_number ?? old('mobile_number')); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('father_name', 'staff::locale.father_name'); ?>

                        <?php echo Form::text('father_name', $staff->father_name ?? old('father_name')); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('mother_name', 'staff::locale.mother_name'); ?>

                        <?php echo Form::text('mother_name', $staff->mother_name ?? old('mother_name')); ?>

                        <?php echo Form::closeGroup(); ?>

                    </div>
                    <div class="row">
                        <?php echo Form::openGroup('email', 'staff::locale.email_login',array("lbl_class" => "required")); ?>

                        <?php echo Form::text('email',$staff->user->email ?? old('email'),array("required" => true)); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('gender', 'staff::locale.gender'); ?>

                        <?php echo Form::select('gender', [null=>'Please Select'] + $genders, $staff->user->gender ?? old('gender'),['class' => 'mdl-textfield__input form-control']); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('dob', 'staff::locale.dob'); ?>

                        <?php echo Form::text('dob', $staff->user->dob ?? old('dob'),[ 'id' => 'dob',"autocomplete" => "off",'class' => 'mdl-textfield__input setDatePicker']); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('joining_date', 'staff::locale.joining_date'); ?>

                        <?php echo Form::text('joining_date', $staff->joining_date ?? old('joining_date'),["autocomplete" => "off",'class' => 'mdl-textfield__input setDatePicker']); ?>

                        <?php echo Form::closeGroup(); ?>

                    </div>
                    <div class="row">

                        <?php echo Form::openGroup('marital_status', 'staff::locale.marital_status'); ?>

                        <?php echo Form::select('marital_status', [null=>'Please Select'] + $marital_status, $staff->marital_status ?? old('marital_status'),['class' => 'mdl-textfield__input form-control']); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('avatar',  Lang::get('staff::locale.avatar')); ?>

                        <?php echo Form::file('avatar'); ?>

                        <?php $__env->startPush("scripts-joining_letter"); ?>
                            <?php echo Form::filejs(); ?>

                        <?php $__env->stopPush(); ?>
                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('note', 'staff::locale.note', array('class' => 'col-md-6')); ?>

                        <?php echo Form::textarea('note',$staff->note ?? old('note'),["rows" => 4]); ?>

                        <?php echo Form::closeGroup(); ?>

                    </div>
                    <div class="row">
                        <?php echo Form::openGroup('current_address', 'staff::locale.current_address'); ?>

                        <?php echo Form::textarea('current_address',$staff->user->current_address ?? old('current_address'),["rows" => 4]); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('permanent_address', 'staff::locale.permanent_address'); ?>

                        <?php echo Form::textarea('permanent_address',$staff->user->permanent_address ?? old('permanent_address'),["rows" => 4]); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('qualification', 'staff::locale.qualification'); ?>

                        <?php echo Form::textarea('qualification',$staff->qualification ?? old('qualification'),["rows" => 4]); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('work_exp', 'staff::locale.work_exp'); ?>

                        <?php echo Form::textarea('work_exp',$staff->work_exp ?? old('work_exp'),["rows" => 4]); ?>

                        <?php echo Form::closeGroup(); ?>

                    </div>

                    <?php if(\App\Facades\General::isSchoolAdmin() && !isset($isTeacherProfile)): ?>
                        <div class="row">
                            <?php echo Form::openGroup('view_contact', 'locale.view_contact'); ?>

                            <?php echo Form::checkbox('view_contact', 1, (isset($staff->view_contact) && $staff->view_contact == 1 ? 'checked' : '') , ['id' => "view_contact","class" => "form-control"]); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('student_action', 'locale.student_action'); ?>

                            <?php echo Form::checkbox('student_action', 1,(isset($staff->student_action) && $staff->student_action == 1 ? 'checked' : ''), ['id' => "student_action","class" => "form-control"]); ?>

                            <?php echo Form::closeGroup(); ?>

                        </div>
                    <?php endif; ?>
                </div>

            </div>
            <?php if(\App\Facades\General::isSchoolAdmin() && !isset($isTeacherProfile)): ?>
                <div class="card card-topline-aqua">
                    <?php echo $__env->make('layouts.modules.header', [ 'title' => __('Payroll'), 'hide'=> true], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <div class="card-body row">
                        <div class="row">
                            <?php echo Form::openGroup('epf_no', 'staff::locale.epf_no'); ?>

                            <?php echo Form::text('epf_no', $staff->epf_no ?? old('epf_no')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('basic_salary', 'staff::locale.basic_salary'); ?>

                            <?php echo Form::text('basic_salary', $staff->basic_salary ?? old('basic_salary')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('contract_type', 'staff::locale.contract_type'); ?>

                            <?php echo Form::text('contract_type', $staff->contract_type ?? old('contract_type')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('work_shift', 'staff::locale.work_shift'); ?>

                            <?php echo Form::text('work_shift', $staff->work_shift ?? old('work_shift')); ?>

                            <?php echo Form::closeGroup(); ?>

                        </div>
                        <div class="row">
                            <?php echo Form::openGroup('location', 'staff::locale.location'); ?>

                            <?php echo Form::text('location', $staff->location ?? old('location')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('alloted_leave_1', 'staff::locale.alloted_leave_1'); ?>

                            <?php echo Form::text('alloted_leave_1', $staff->alloted_leave_1 ?? old('alloted_leave_1')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('alloted_leave_2', 'staff::locale.alloted_leave_2'); ?>

                            <?php echo Form::text('alloted_leave_2', $staff->alloted_leave_2 ?? old('alloted_leave_2')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('alloted_leave_3', 'staff::locale.alloted_leave_3'); ?>

                            <?php echo Form::text('alloted_leave_3', $staff->alloted_leave_3 ?? old('alloted_leave_3')); ?>

                            <?php echo Form::closeGroup(); ?>

                        </div>
                        <div class="row">
                            <?php echo Form::openGroup('account_title', 'staff::locale.account_title'); ?>

                            <?php echo Form::text('account_title', $staff->account_title ?? old('account_title')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('bank_account_no', 'staff::locale.bank_account_no'); ?>

                            <?php echo Form::text('bank_account_no', $staff->bank_account_no ?? old('bank_account_no')); ?>

                            <?php echo Form::closeGroup(); ?>



                            <?php echo Form::openGroup('bank_name', 'staff::locale.bank_name'); ?>

                            <?php echo Form::text('bank_name', $staff->bank_name ?? old('bank_name')); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('ifsc_code', 'staff::locale.ifsc_code'); ?>

                            <?php echo Form::text('ifsc_code', $staff->ifsc_code ?? old('ifsc_code')); ?>

                            <?php echo Form::closeGroup(); ?>

                        </div>
                    </div>
                </div>
            <?php endif; ?>

            <div class="card card-topline-aqua">
                <?php echo $__env->make('layouts.modules.header', [ 'title' => __('Social Media'), 'hide'=> true], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="card-body row">
                    <div class="row">
                        <?php echo Form::openGroup('fb_url', 'staff::locale.fb_url'); ?>

                        <?php echo Form::text('fb_url', $staff->fb_url ?? old('fb_url')); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('twitter_url', 'staff::locale.twitter_url'); ?>

                        <?php echo Form::text('twitter_url', $staff->twitter_url ?? old('twitter_url')); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('linkedin_url', 'staff::locale.linkedin_url'); ?>

                        <?php echo Form::text('linkedin_url', $staff->linkedin_url ?? old('linkedin_url')); ?>

                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('instagram_url', 'staff::locale.instagram_url'); ?>

                        <?php echo Form::text('work_shift', $staff->instagram_url ?? old('instagram_url')); ?>

                        <?php echo Form::closeGroup(); ?>

                    </div>
                </div>
            </div>
            <?php if(\App\Facades\General::isSchoolAdmin() && !isset($isTeacherProfile)): ?>
            <div class="card card-topline-aqua">
                <?php echo $__env->make('layouts.modules.header', [ 'title' => __('Documents'), 'hide'=> true], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="card-body row">
                    <div class="row">
                        <?php echo Form::openGroup('resume',  Lang::get('staff::locale.resume')); ?>

                        <?php echo Form::file('resume'); ?>

                        <?php $__env->startPush("scripts-footer"); ?>
                            <?php echo Form::filejs(); ?>

                        <?php $__env->stopPush(); ?>
                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('document',  Lang::get('staff::locale.document')); ?>

                        <?php echo Form::file('document'); ?>

                        <?php $__env->startPush("scripts-footer"); ?>
                            <?php echo Form::filejs(); ?>

                        <?php $__env->stopPush(); ?>
                        <?php echo Form::closeGroup(); ?>


                        <?php echo Form::openGroup('joining_letter',  Lang::get('staff::locale.joining_letter')); ?>

                        <?php echo Form::file('photo'); ?>

                        <?php $__env->startPush("scripts-joining_letter"); ?>
                            <?php echo Form::filejs(); ?>

                        <?php $__env->stopPush(); ?>
                        <?php echo Form::closeGroup(); ?>

                    </div>
                </div>
            </div>
            <?php endif; ?>
            <div class="row"> <?php echo $__env->make('layouts.forms.actions', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div>
            <?php echo Form::close(); ?>

        </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/sms/app/Modules/Staff/Resources/Views/add_edit_form.blade.php ENDPATH**/ ?>