<?php $__env->startSection('title', 'Edit Member'); ?>

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

    <section>
        <div class="row">
            <div class="col-12">

                <div class="card">

                    <div class="card-content">
                        <div class="card-header">
                             <h1>Edit Member</h1>

                        </div>
                        <div class="card-body card-dashboard">
                            <?php echo $__env->make('inc.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <form class="form" method="POST" action="<?php echo e(route('member.update',['id'=>$member->id])); ?>" enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('put'); ?>
                                <div class="form-body">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="full_name">Full Name</label>
                                                <input type="text" id="full_name" class="form-control"
                                                    placeholder="Full Name" name="name" value="<?php echo e($member->name); ?>" required>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="member_number">Member #</label>
                                                <input type="text" id="member_number" class="form-control"
                                                    placeholder="Member #" name="member_number"  value="<?php echo e($member->member_number); ?>" required>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="gender">Gender</label>
                                                <select name="gender" id="gender" class="form-control" required>
                                                    <?php if($member->gender==0): ?>
                                                        <option value="0" selected>Male</option>
                                                        <option value="1">Female</option>
                                                    <?php else: ?>
                                                        <option value="0" >Male</option>
                                                        <option value="1" selected>Female</option>
                                                    <?php endif; ?>
                                                </select>
                                            </div>
                                        </div>
                                    
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="cnic">CNIC</label>
                                                <input type="text" id="cnic" class="form-control"
                                                    placeholder="CNIC" name="cnic"  value="<?php echo e($member->cnic); ?>" required>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="phone">Contact Number</label>
                                                <input type="text" id="phone"  class="form-control"
                                                    placeholder="Phone" name="phone"  value="<?php echo e($member->phone); ?>" required>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="email">E-mail</label>
                                        <input type="email" id="email" class="form-control"
                                            placeholder="E-mail" name="email" value="<?php echo e($member->email); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="picture">Picture</label>
                                                <input type="file" id="picture" class="form-control"
                                                    placeholder="Picture" name="picture"  value="<?php echo e($member->picture); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="maritial_status">Maritial Status</label>
                                                <select name="maritial_status" id="maritial_status" class="form-control" required>
                                                    <?php if($member->maritial_status==0): ?>
                                                        <option value="0" selected>Married</option>
                                                        <option value="1">Unmarried</option>
                                                    <?php else: ?>
                                                        <option value="0">Married</option>
                                                        <option value="1" selected>Unmarried</option>
                                                    <?php endif; ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="religion">Religion</label>
                                                <select name="religion" id="religion" class="form-control" required>
                                                    <?php if($member->religion=='Islam'): ?>
                                                        <option value="Islam" selected>Islam</option>
                                                        <option value="Christianity">Christianity</option>
                                                        <option value="Hinduism">Hinduism</option>
                                                    <?php elseif($member->religion=='Christianity'): ?>
                                                        <option value="Islam" >Islam</option>
                                                        <option value="Christianity" selected>Christianity</option>
                                                        <option value="Hinduism">Hinduism</option>
                                                    <?php else: ?>
                                                        <option value="Islam" >Islam</option>
                                                        <option value="Christianity">Christianity</option>
                                                        <option value="Hinduism" selected>Hinduism</option>
                                                    <?php endif; ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="nationality">Nationality</label>
                                                <input type="text" id="nationality" class="form-control"
                                                    placeholder="Nationality" name="nationality" value="<?php echo e($member->nationality); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="blood_group">Blood Group</label>
                                                <select name="blood_group" id="blood_group" class="form-control" required>
                                                    <?php if($member->blood_group=='A +ve'): ?>
                                                        <option value="A +ve" selected>A +ve</option>
                                                        <option value="A -ve">A -ve</option>
                                                        <option value="B +ve">B +ve</option>
                                                        <option value="B -ve">B -ve</option>
                                                        <option value="AB +ve">AB +ve</option>
                                                        <option value="AB -ve">AB -ve</option>
                                                        <option value="O +ve">O +ve</option>
                                                        <option value="O -ve">O -ve</option>

                                                        <?php elseif($member->blood_group=='A -ve'): ?>
                                                            <option value="A +ve">A +ve</option>
                                                            <option value="A -ve" selected>A -ve</option>
                                                            <option value="B +ve">B +ve</option>
                                                            <option value="B -ve">B -ve</option>
                                                            <option value="AB +ve">AB +ve</option>
                                                            <option value="AB -ve">AB -ve</option>
                                                            <option value="O +ve">O +ve</option>
                                                            <option value="O -ve">O -ve</option>

                                                        <?php elseif($member->blood_group=='B +ve'): ?>
                                                            <option value="A +ve">A +ve</option>
                                                            <option value="A -ve">A -ve</option>
                                                            <option value="B +ve" selected>B +ve</option>
                                                            <option value="B -ve">B -ve</option>
                                                            <option value="AB +ve">AB +ve</option>
                                                            <option value="AB -ve">AB -ve</option>
                                                            <option value="O +ve">O +ve</option>
                                                            <option value="O -ve">O -ve</option>
                                                    <?php elseif($member->blood_group=='B -ve'): ?>
                                                        <option value="A +ve">A +ve</option>
                                                        <option value="A -ve" >A -ve</option>
                                                        <option value="B +ve">B +ve</option>
                                                        <option value="B -ve" selected>B -ve</option>
                                                        <option value="AB +ve">AB +ve</option>
                                                        <option value="AB -ve">AB -ve</option>
                                                        <option value="O +ve">O +ve</option>
                                                        <option value="O -ve">O -ve</option>


                                                    

                                                        <?php elseif($member->blood_group=='AB +ve'): ?>
                                                        <option value="A +ve">A +ve</option>
                                                        <option value="A -ve" >A -ve</option>
                                                        <option value="B +ve">B +ve</option>
                                                        <option value="B -ve">B -ve</option>
                                                        <option value="AB +ve" selected>AB +ve</option>
                                                        <option value="AB -ve">AB -ve</option>
                                                        <option value="O +ve">O +ve</option>
                                                        <option value="O -ve">O -ve</option>


                                                    

                                                        <?php elseif($member->blood_group=='AB -ve'): ?>
                                                        <option value="A +ve">A +ve</option>
                                                        <option value="A -ve" >A -ve</option>
                                                        <option value="B +ve">B +ve</option>
                                                        <option value="B -ve">B -ve</option>
                                                        <option value="AB +ve">AB +ve</option>
                                                        <option value="AB -ve" selected>AB -ve</option>
                                                        <option value="O +ve">O +ve</option>
                                                        <option value="O -ve">O -ve</option>

                                                        <?php elseif($member->blood_group=='O +ve'): ?>
                                                        <option value="A +ve">A +ve</option>
                                                        <option value="A -ve" >A -ve</option>
                                                        <option value="B +ve">B +ve</option>
                                                        <option value="B -ve">B -ve</option>
                                                        <option value="AB +ve">AB +ve</option>
                                                        <option value="AB -ve">AB -ve</option>
                                                        <option value="O +ve" selected>O +ve</option>
                                                        <option value="O -ve">O -ve</option>

                                                        <?php elseif($member->blood_group=='0 -ve'): ?>
                                                        <option value="A +ve">A +ve</option>
                                                        <option value="A -ve" selected>A -ve</option>
                                                        <option value="B +ve">B +ve</option>
                                                        <option value="B -ve">B -ve</option>
                                                        <option value="AB +ve">AB +ve</option>
                                                        <option value="AB -ve">AB -ve</option>
                                                        <option value="O +ve">O +ve</option>
                                                        <option value="O -ve" selected>O -ve</option>

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

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="qualification">Qualification</label>
                                                <input type="text" id="qualification" class="form-control"
                                                    placeholder="Qualification" name="qualification" value="<?php echo e($member->qualification); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="profession">Profession</label>
                                                <input type="text" id="profession" class="form-control"
                                                    placeholder="Profession" name="profession" value="<?php echo e($member->profession); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="income">Income</label>
                                                <input type="text" id="income" class="form-control"
                                                    placeholder="Income" name="income" value="<?php echo e($member->income); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="district">District</label>
                                                <input type="text" id="district" class="form-control"
                                                    placeholder="District" name="district" value="<?php echo e($member->district); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="village">Village</label>
                                                <input type="text" id="village" class="form-control"
                                                    placeholder="Village" name="village" value="<?php echo e($member->village); ?>" required>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label for="city">City</label>
                                                <input type="text" id="city" class="form-control"
                                                    placeholder="City" name="city" value="<?php echo e($member->city); ?>" required>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label for="address">Address</label>
                                                <input type="text" id="address" class="form-control"
                                                    placeholder="Address" name="address" value="<?php echo e($member->address); ?>" required>
                                            </div>
                                        </div>
                                        
                                    </div>
                                    
                                </div>
                                <div class="form-actions">
                                    
                                    <button type="submit" class="btn btn-primary">
                                        <i class="la la-check-square-o"></i> Update
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/forms/icheck/custom.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/forms/icheck/icheck.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/forms/selects/select2.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script src="<?php echo e(asset('app-assets/vendors/js/forms/select/select2.full.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('app-assets/vendors/js/forms/validation/jquery.validate.min.js')); ?>" type="text/javascript"></script>

    <script src="<?php echo e(asset('app-assets/vendors/js/forms/validation/additional-methods.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('app-assets/vendors/js/forms/extended/inputmask/jquery.inputmask.bundle.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('js/datatable_buttons.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('app-assets/vendors/js/extensions/toastr.min.js')); ?>" type="text/javascript"></script>


    <script type="text/javascript">
        $(document).ready(function() {

            $('#cnic').inputmask("99999-9999999-9");
            $('#phone').inputmask("9999-9999999");
        });
  
            
    </script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\awad_new\resources\views/member/edit.blade.php ENDPATH**/ ?>