
<?php $__env->startSection('content'); ?>
    <?php
        $roleName = isset($result['foodscraftRole']) && !empty($result['foodscraftRole']) ? strtolower($result['foodscraftRole']) : (isset($roleType) && !empty($roleType) ? strtolower($roleType) : '');
    ?>
    <div class="row">
        <div class="col-md-12">
            <div class="main-card mb-3 card">
                <div class="card-header pt-4" style="align-self: center;justify-content: center;width: 75%;border-bottom: none;">
                    <?php if(isset($result) && $roleName !== 'sitemarshal'): ?>
                        <h3><?php echo e('VIEW '. $roleName .' PROFILE'); ?></h3>
                    <?php endif; ?>
                </div>
                <div class="card-body">
                    <form>
                        <div class="row">
                            <div class="col-md-4 col-sm-12 pr-md-1">
                                <div class="form-group">
                                    <label for="name">Client's Name</label><span class="required-field">*</span>
                                    <input type="text" id="name" class="form-control" autocomplete="off" name="name" value="<?php echo e(isset($result['name']) ? $result['name'] : ''); ?>" required <?php echo!isset($result['name']) && empty($result['name']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-12 px-md-1">
                                <div class="form-group">
                                    <label for="username">Client Code</label><span class="required-field">*</span>
                                    <input type="text" id="username" class="form-control" autocomplete="off" name="username" value="<?php echo e(isset($result['username']) ? $result['username'] : ''); ?>" required <?php echo!isset($result['username']) && empty($result['username']) ? '' : ($type == "edit" ? 'readonly' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-12 pl-md-1">
                                <div class="form-group">
                                    <label for="email">Email address</label><span class="required-field">*</span>
                                    <input type="email" id="email" class="form-control" name="email" required autocomplete="off" value="<?php echo e(isset($result['email']) ? $result['email'] : ''); ?>" required <?php echo!isset($result['email']) && empty($result['email']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                        </div>

                        <?php if($roleName == 'client'): ?>
                            <?php
                                $explode_names = isset($result['contactName']) && !empty($result['contactName']) ? explode(", ", $result['contactName']) : '';
                                $explode_number = isset($result['contactNumber']) && !empty($result['contactNumber']) ? explode(", ", $result['contactNumber']) : '';
                            ?>
                            <div class="row">
                                <div class="col-md-4 col-sm-12 pr-md-1">
                                    <div class="form-group">
                                        <label for="contactName">Contact person name</label><span class="required-field">*</span>
                                        <input id="contactName" type="text" class="form-control" name="contactName[]" autocomplete="off" value="<?php echo e(is_array($explode_names) ? (isset($explode_names[0]) ? $explode_names[0] : '') : ''); ?>" required <?php echo!isset($result['contactName']) && empty($result['contactName']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                    </div>
                                </div>
                                <div class="col-md-4 col-sm-12 px-md-1">
                                    <div class="form-group">
                                        <label for="contactName">Contact person name (1)</label>
                                        <input id="contactName" type="text" class="form-control" name="contactName[]" autocomplete="off" value="<?php echo e(is_array($explode_names) ? (isset($explode_names[1]) ? $explode_names[1] : '') : ''); ?>" <?php echo!isset($result['contactName']) && empty($result['contactName']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                    </div>
                                </div>
                                <div class="col-md-4 col-sm-12 pl-md-1">
                                    <div class="form-group">
                                        <label for="contactName">Contact person name (2)</label>
                                        <input id="contactName" type="text" class="form-control" name="contactName[]" autocomplete="off" value="<?php echo e(is_array($explode_names) ? (isset($explode_names[2]) ? $explode_names[2] : '') : ''); ?>" <?php echo!isset($result['contactName']) && empty($result['contactName']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-4 col-sm-12 pr-md-1">
                                    <div class="form-group">
                                        <label for="contactNumber">Contact person number</label><span class="required-field">*</span>
                                        <input id="contactNumber" type="tel" pattern="^[0-9]{10}$" data-toggle="tooltip" title="10 Digit Mobile Number Only" class="form-control" name="contactNumber[]" autocomplete="off" value="<?php echo e(is_array($explode_number) ? (isset($explode_number[0]) ? $explode_number[0] : '') : ''); ?>" required <?php echo!isset($result['contactNumber']) && empty($result['contactNumber']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                    </div>
                                </div>
                                <div class="col-md-4 col-sm-12 px-md-1">
                                    <div class="form-group">
                                        <label for="contactNumber">Contact person number (1)</label>
                                        <input id="contactNumber" type="tel" pattern="^[0-9]{10}$" data-toggle="tooltip" title="10 Digit Mobile Number Only" class="form-control" name="contactNumber[]" autocomplete="off" value="<?php echo e(is_array($explode_number) ? (isset($explode_number[1]) ? $explode_number[1] : '') : ''); ?>" <?php echo!isset($result['contactNumber']) && empty($result['contactNumber']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                    </div>
                                </div>
                                <div class="col-md-4 col-sm-12 pl-md-1">
                                    <div class="form-group">
                                        <label for="contactNumber">Contact person number (2)</label>
                                        <input id="contactNumber" type="tel" pattern="^[0-9]{10}$" data-toggle="tooltip" title="10 Digit Mobile Number Only" class="form-control" name="contactNumber[]" autocomplete="off" value="<?php echo e(is_array($explode_number) ? (isset($explode_number[2]) ? $explode_number[2] : '') : ''); ?>" <?php echo!isset($result['contactNumber']) && empty($result['contactNumber']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>

                        <input id="foodscraftRole" type="hidden" name="foodscraftRole" value="<?php echo e(isset($result['foodscraftRole']) ? $result['foodscraftRole'] : $roleType); ?>" readonly />
                        <div class="row mb-2">
                            <div class="col-md-3 col-sm-12 pr-md-1">
                                <div class="form-group">
                                    <label for="address">Client Address</label><span class="required-field">*</span>
                                    <input id="address" type="text" class="form-control" name="address" autocomplete="off" value="<?php echo e(isset($result['address']) && !empty($result['address']) ? $result['address'] : ''); ?>" required <?php echo!isset($result['address']) && empty($result['address']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12 px-md-1">
                                <div class="form-group">
                                    <label for="headOffice">Head Office Address</label><span class="required-field">*</span>
                                    <input id="headOffice" type="text" class="form-control" name="headOffice" value="<?php echo e(isset($result['headOffice']) ? $result['headOffice'] : ''); ?>" required <?php echo!isset($result['headOffice']) && empty($result['headOffice']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12 px-md-1">
                                <div class="form-group">
                                    <label for="employeeNumber">No. of employees</label><span class="required-field">*</span>
                                    <input id="employeeNumber" type="text" class="form-control" name="employeeNumber" value="<?php echo e(isset($result['employeeNumber']) ? $result['employeeNumber'] : ''); ?>" required <?php echo!isset($result['employeeNumber']) && empty($result['employeeNumber']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12 pl-md-1 mb-sm-2">
                                <div class="form-group">
                                    <label for="clientCategory">Client Category</label><span class="required-field">*</span>
                                    <input class="form-control" name="clientCategory" type="text" value="<?php echo e($result['clientCategory']); ?>" readonly>
                                </div>
                            </div>
                        </div>
                        
                        <div class="row mb-2">
                            <div class="col col-md-6 border-right">
                                <div class="form-group">
                                    <h6 class="text-center d-flex justify-content-center"><span class="border-bottom-span border-bottom">Type of services</span><span class="required-field">*</span></h5>
                                    <input class="inp-cbx" id="mainMeal" type="checkbox" name="typeOfServices[]" value="mainMeal" <?php echo!isset($result['typeOfServices']) && empty($result['typeOfServices']) ? '' : (in_array("mainMeal", explode(", ", $result["typeOfServices"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="mainMeal">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Main Meal</span>
                                    </label>
                                    <input class="inp-cbx" id="tuckShop" type="checkbox" name="typeOfServices[]" value="tuckShop" <?php echo!isset($result['typeOfServices']) && empty($result['typeOfServices']) ? '' : (in_array("tuckShop", explode(", ", $result["typeOfServices"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="tuckShop">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Tuck Shop</span>
                                    </label>
                                    <input class="inp-cbx" id="liveCounter" type="checkbox" name="typeOfServices[]" value="liveCounter" <?php echo!isset($result['typeOfServices']) && empty($result['typeOfServices']) ? '' : (in_array("liveCounter", explode(", ", $result["typeOfServices"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="liveCounter">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Live Counter</span>
                                    </label>
                                    <input class="inp-cbx" id="healthyOptions" type="checkbox" name="typeOfServices[]" value="healthyOptions" <?php echo!isset($result['typeOfServices']) && empty($result['typeOfServices']) ? '' : (in_array("healthyOptions", explode(", ", $result["typeOfServices"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="healthyOptions">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Healthy Options</span>
                                    </label>
                                    <input class="inp-cbx" id="mrp" type="checkbox" name="typeOfServices[]" value="mrp" <?php echo!isset($result['typeOfServices']) && empty($result['typeOfServices']) ? '' : (in_array("mrp", explode(", ", $result["typeOfServices"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="mrp">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Mrp</span>
                                    </label>
                                    <input class="inp-cbx" id="juiceOrBeverages" type="checkbox" name="typeOfServices[]" value="juiceOrBeverages" <?php echo!isset($result['typeOfServices']) && empty($result['typeOfServices']) ? '' : (in_array("juiceOrBeverages", explode(", ", $result["typeOfServices"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="juiceOrBeverages">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Juice Or Beverages</span>
                                    </label>
                                    <input class="inp-cbx" id="tosothers" type="checkbox" name="typeOfServices[]" onclick="tosothersFunction()" value="others" <?php echo!isset($result['typeOfServices']) && empty($result['typeOfServices']) ? '' : (in_array("tosothers", explode(", ", $result["typeOfServices"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="tosothers">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Others</span>
                                    </label>
                                </div>
                                <div class="col-md-12 pr-md-1 divtosother" id="divtosother" style="display:none">
                                    <div class="form-group">
                                        <label for="tosother">Type of services other</label>
                                        <textarea id="tosother" class="md-textarea form-control" rows="3" autocomplete="off" name="tosother">
                                            <?php echo isset($result['tosother']) ? $result['tosother'] : '' ?>
                                            <?php echo !isset($result['tosother']) && empty($result['tosother']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?>
                                        </textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="typeServiceSuggestion">Suggestion Box for Type of Services</label>
                                    <textarea id="typeServiceSuggestion" type="text" class="form-control" name="typeServiceSuggestion" <?php echo !isset($result['typeServiceSuggestion']) && empty($result['typeServiceSuggestion']) ? '' : ($type == 'edit' ? '' : ($type == 'view' ? 'disabled' : '')) ?> readonly><?php echo e(isset($result['typeServiceSuggestion']) ? $result['typeServiceSuggestion'] : 'No Suggestions'); ?></textarea>
                                </div>
                            </div>
                            <div class="col col-md-6 border-left">
                                <div class="form-group">
                                    <h6 class="text-center d-flex justify-content-center"><span class="border-bottom-span border-bottom">Client scope for cafe</span><span class="required-field">*</span></h6>
                                    <input class="inp-cbx" id="bainMaire" type="checkbox" name="clientScopeCafe[]" value="bainMaire" <?php echo!isset($result['clientScopeCafe']) && empty($result['clientScopeCafe']) ? '' : (in_array("bainMaire", explode(", ", $result["clientScopeCafe"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="bainMaire">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Provides bain maire</span>
                                    </label>
                                    <input class="inp-cbx" id="cutleryCrockery" type="checkbox" name="clientScopeCafe[]" value="cutleryCrockery" <?php echo!isset($result['clientScopeCafe']) && empty($result['clientScopeCafe']) ? '' : (in_array("cutleryCrockery", explode(", ", $result["clientScopeCafe"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="cutleryCrockery">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Cutlery & Crockery</span>
                                    </label>
                                    <input class="inp-cbx" id="DishWashingArea" type="checkbox" name="clientScopeCafe[]" value="DishWashingArea" <?php echo!isset($result['clientScopeCafe']) && empty($result['clientScopeCafe']) ? '' : (in_array("DishWashingArea", explode(", ", $result["clientScopeCafe"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="DishWashingArea">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Dish washing area</span>
                                    </label>
                                    <input class="inp-cbx" id="DishWashingMachine" type="checkbox" name="clientScopeCafe[]" value="DishWashingMachine" <?php echo!isset($result['clientScopeCafe']) && empty($result['clientScopeCafe']) ? '' : (in_array("DishWashingMachine", explode(", ", $result["clientScopeCafe"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="DishWashingMachine">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Dish Washing Machine</span>
                                    </label>
                                    <input class="inp-cbx" id="SpaceForLiveCooking" type="checkbox" name="clientScopeCafe[]" value="SpaceForLiveCooking" <?php echo!isset($result['clientScopeCafe']) && empty($result['clientScopeCafe']) ? '' : (in_array("SpaceForLiveCooking", explode(", ", $result["clientScopeCafe"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="SpaceForLiveCooking">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Space for live cooking</span>
                                    </label>
                                    <input class="inp-cbx csfcother" id="csfcothers" type="checkbox" onclick="csfcothersFunction()" name="clientScopeCafe[]" value="others" <?php echo!isset($result['clientScopeCafe']) && empty($result['clientScopeCafe']) ? '' : (in_array("others", explode(", ", $result["clientScopeCafe"])) ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                    <label class="cbx" for="csfcothers">
                                        <span>
                                            <svg width="12px" height="11px" viewBox="0 0 12 11">
                                                <polyline points="1 6.29411765 4.5 10 11 1"></polyline>
                                            </svg>
                                        </span>
                                        <span>Others</span>
                                    </label>
                                </div>
                                <div class="col-md-12 pr-md-1 divcsfcother" id="divcsfcother" style="display:none">
                                    <div class="form-group">
                                        <label for="csfcother">Client scope for cafe other</label>
                                        <textarea id="csfcother" class="md-textarea form-control" rows="3" autocomplete="off" name="csfcother">
                                            <?php echo isset($result['csfcother']) ? $result['csfcother'] : '' ?>
                                            <?php echo !isset($result['csfcother']) && empty($result['csfcother']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?>
                                        </textarea>
                                    </div>
                                </div>
                        
                                <div class="form-group">
                                    <label for="clientScopeSuggestion">Suggestion Box for Client Scope</label>
                                    <textarea type="text" class="form-control" name="clientScopeSuggestion" <?php echo !isset($result['clientScopeSuggestion']) && empty($result['clientScopeSuggestion']) ? '' : ($type == 'edit' ? '' : ($type == 'view' ? 'disabled' : '')) ?> readonly><?php echo e(isset($result['clientScopeSuggestion']) ? $result['clientScopeSuggestion'] : 'No Suggestions'); ?></textarea>
                                </div>
                            </div>  
                        </div>
                        
<!--                        <div class="row">
                            <div class="col border-right">
                                <div class="form-group">
                                    <h5 class="text-center d-flex justify-content-center" style="font-weight: 600 !important;color: #fff;"><span class="border-bottom">Payment terms</span><span class="required-field">*</span></h5>
                                    <div class="d-flex justify-content-around">
                                        <label class="radio">
                                            <input type="radio" name="paymentTerms" value="minimumGuarantee" <?php echo !isset($result['paymentTerms']) && empty($result['paymentTerms']) ? '' : ($result['paymentTerms'] == "minimumGuarantee" ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                            <span>Minimum guarantee</span>
                                        </label>
                                        <label class="radio">
                                            <input type="radio" name="paymentTerms" value="subsidized" <?php echo !isset($result['paymentTerms']) && empty($result['paymentTerms']) ? '' : ($result['paymentTerms'] == "subsidized" ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                            <span>Subsidized</span>
                                        </label>
                                        <label class="radio">
                                            <input type="radio" name="paymentTerms" value="cash" <?php echo !isset($result['paymentTerms']) && empty($result['paymentTerms']) ? '' : ($result['paymentTerms'] == "cash" ? ($type == 'view' ? 'checked disabled' : 'checked') : ($type == 'edit' ? '' : 'disabled')) ?> />
                                            <span>Cash</span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="col border-left">
                                <div class="form-group">
                                    <h5 class="text-center d-flex-justify-content-center" style="font-weight: 600 !important;color: #fff;"><span class="border-bottom">Client Agreement/Contract</span></h5>
                                    <?php if(isset($type)): ?>
                                        <?php if($type == 'view' && $type !== 'edit'): ?>
                                            <div class="d-flex flex-wrap justify-content-center">
                                                <?php if(isset($result['temp1'])): ?>
                                                    <?php
                                                        $url = asset('storage/documents/clients').'/'.$result['clientId'].'/';
                                                        $elements = explode(" ", $result['temp1']);
                                                    ?>
                                                    <?php $__empty_1 = true; $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                        <button class="btn btn-info m-1" data-toggle="tooltip" title="<?php echo e($element); ?>">
                                                            <a class="text-decoration-none text-white" href="<?php echo e($url.$element); ?>" target="_blank">Agreement Link</a>
                                                        </button>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                        <span class="badge badge-danger mt-2">Something Went Wrong!</span>
                                                    <?php endif; ?>
                                                <?php else: ?>
                                                    <span class="badge badge-warning mt-2">No Documents Submitted yet!</span>
                                                <?php endif; ?>
                                            </div>
                                        <?php elseif($type == 'edit'): ?>
                                            <?php if(isset($result['temp1'])): ?>
                                                <div class="d-flex flex-wrap justify-content-center">
                                                    <span class="badge badge-warning mt-2">Documents once submitted cannot be updated anymore..</span>
                                                </div>
                                            <?php else: ?>
                                                <div class="custom-file">
                                                    <input type="file" class="custom-file-input" id="clientDocuments" lang="es" name="clientDocuments[]" onchange="putName(this);" accept=".doc, .pdf" multiple />
                                                    <label class="custom-file-label" for="clientDocuments">Maximum limit for uploading is 5..</label>
                                                </div>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    <?php else: ?>
                                        <div class="custom-file">
                                            <input type="file" class="custom-file-input" id="clientDocuments" lang="es" name="clientDocuments[]" onchange="putName(this);" accept=".doc, .pdf" multiple />
                                            <label class="custom-file-label" for="clientDocuments">Maximum limit for uploading is 5..</label>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                        
                        <div class="row">
                            <div class="col-md-6 pr-md-1">
                                <div class="form-group">
                                    <label for="paymentdetails">Payment Details</label><span class="required-field">*</span>
                                    <input type="text" id="paymentdetails" class="form-control" autocomplete="off" name="paymentdetails" value="<?php echo e(isset($result['paymentdetails']) ? $result['paymentdetails'] : ''); ?>" required <?php echo!isset($result['paymentdetails']) && empty($result['paymentdetails']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                            <div class="col-md-6 pl-md-1">
                                <div class="form-group">
                                    <label for="paymentcycle">Payment Cycle</label><span class="required-field">*</span>
                                    <input type="text" id="paymentcycle" class="form-control" autocomplete="off" name="paymentcycle'' }}" required <?php echo!isset($result['paymentcycle']) && empty($result['paymentcycle']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
                                </div>
                            </div>
                        </div>-->
                        
                        <?php if(isset($type) && $type == "view" && isset($listMapfirstdata) && isset($listMapseconddata)): ?>
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <h5 class="text-center d-flex justify-content-center"><span class="border-bottom-span border-bottom">Mapped Marshall List</span></h5>
                                        <div class="card-body">
                                            <div class="table-responsive px-2" style="overflow-x: scroll; overflow-y: hidden;">
                                                <table class="table table-hover">
                                                    <thead class="text-dark">
                                                        <tr>
                                                            <th class="text-left" scope="col">S.No.</th> 
                                                            <th class="text-left" scope="col">Name</th>
                                                            <th class="text-left" scope="col">Employee Id</th>
                                                            <th class="text-left" scope="col">Contact Number</th>
                                                            <th class="text-left" scope="col">Designation</th>
                                                            <th class="text-left" scope="col">Action</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <?php $__empty_1 = true; $__currentLoopData = $listMapfirstdata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                            <tr>
                                                                <th class="text-left" scope="row"><?php echo e(++$key); ?></th>
                                                                <td class="text-left"><?php echo e($value[0]['name']); ?></td>
                                                                <td class="text-left"><?php echo e($value[0]['username']); ?></td>
                                                                <td class="text-left"><?php echo e($value[0]['contactNumber']); ?></td>
                                                                <td class="text-left"><?php echo e($value[0]['designation']); ?></td>
                                                                <td class="d-flex">
                                                                    <div class="peterriver" onclick="viewOrEdit('<?php echo e(url('viewOrEditRole')); ?>', 'view', '<?php echo e($value[0]['marshalId']); ?>');">View</div> 
                                                                </td>
                                                            </tr>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                            <tr>
                                                                <td colspan="7" align="center" class="tablemotfounditem">Not Found any</td>
                                                            </tr>
                                                        <?php endif; ?>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <h5 class="text-center d-flex justify-content-center"><span class="border-bottom-span border-bottom">Mapped Vendor List</span></h5>
                                        <div class="card-body">
                                            <div class="table-responsive px-2" style="overflow-x: scroll; overflow-y: hidden;">
                                                <table class="table table-hover">
                                                    <thead class="text-dark">
                                                        <tr>
                                                            <th class="text-left" scope="col">S.No.</th> 
                                                            <th class="text-left" scope="col">Name</th>
                                                            <th class="text-left" scope="col">Vendor Code</th>
                                                            <th class="text-left" scope="col">Contact Number</th>
                                                            <th class="text-left" scope="col">Commission %</th>
                                                            <th class="text-left" scope="col">Action</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <?php $__empty_1 = true; $__currentLoopData = $listMapseconddata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                            <tr>
                                                                <th class="text-left" scope="row"><?php echo e(++$key); ?></th>
                                                                <td class="text-left"><?php echo e($value[0]['name']); ?></td>
                                                                <td class="text-left"><?php echo e($value[0]['username']); ?></td>
                                                                <td class="text-left"><?php echo e($value[0]['contactNumber']); ?></td>
                                                                <td class="text-left"><?php echo e($value[0]['vendor_aggregation']); ?></td>
                                                                <td class="d-flex">
                                                                    <div class="peterriver" onclick="viewOrEdit('<?php echo e(url('viewOrEditRole')); ?>', 'view', '<?php echo e($value[0]['vendorId']); ?>');">View</div> 
                                                                </td>
                                                            </tr>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                            <tr>
                                                                <td colspan="7" align="center" class="tablemotfounditem">Not Found any</td>
                                                            </tr>
                                                        <?php endif; ?>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>

                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.masterDashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nexaipaybr/public_html/foodycraft/app/Modules/Vendor/Views/client_detail.blade.php ENDPATH**/ ?>