<input id="foodscraftRole" type="hidden" name="foodscraftRole" value="{{ 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="{{ isset($result['address']) && !empty($result['address']) ? $result['address'] : old('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="{{ isset($result['headOffice']) ? $result['headOffice'] : old('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="{{ isset($result['employeeNumber']) ? $result['employeeNumber'] : old('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>
            <select class="form-control" name="clientCategory" id="clientCategory" required <?php echo!isset($result['clientCategory']) && empty($result['clientCategory']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> >
                <option value="{{ isset($result['clientCategory']) && !empty($result['clientCategory']) ? ($type == 'view' ? $result['clientCategory'] : '') : '' }}" checked>{{ isset($result['clientCategory']) && !empty($result['clientCategory']) ? ($type == 'view' ? $result['clientCategory'] : 'Select type') : 'Select type' }}</option>
                <option value="corporate">corporate</option>
                <option value="industrial">industrial</option>
                <option value="hospital">hospital</option>
                <option value="institute">institute</option>
                <option value="psuOthers">Psu & Others</option>
            </select>
        </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>
            </h6>
            <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' : '')) ?>>{{ isset($result['typeServiceSuggestion']) ? $result['typeServiceSuggestion'] : '' }}</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 id="clientScopeSuggestion" type="text" class="form-control" name="clientScopeSuggestion" <?php echo !isset($result['clientScopeSuggestion']) && empty($result['clientScopeSuggestion']) ? '' : ($type == 'edit' ? '' : ($type == 'view' ? 'disabled' : '')) ?>>{{ isset($result['clientScopeSuggestion']) ? $result['clientScopeSuggestion'] : '' }}</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>
            @if(isset($type))
                @if($type == 'view' && $type !== 'edit')
                    <div class="d-flex flex-wrap justify-content-center">
                        @if(isset($result['temp1']))
                            <?php
                                $url = asset('storage/documents/clients').'/'.$result['clientId'].'/';
                                $elements = explode(" ", $result['temp1']);
                            ?>
                            @forelse($elements as $element)
                                <button class="btn btn-info m-1" data-toggle="tooltip" title="{{ $element }}">
                                    <a class="text-decoration-none text-white" href="{{ $url.$element }}" target="_blank">Agreement Link</a>
                                </button>
                            @empty
                                <span class="badge badge-danger mt-2">Something Went Wrong!</span>
                            @endforelse
                        @else
                            <span class="badge badge-warning mt-2">No Documents Submitted yet!</span>
                        @endif
                    </div>
                @elseif($type == 'edit')
                    @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>
                    @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>
                    @endif
                @endif
            @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>
            @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="{{ isset($result['paymentdetails']) ? $result['paymentdetails'] : old('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" value="{{ isset($result['paymentcycle']) ? $result['paymentcycle'] : old('paymentcycle') }}" required <?php echo!isset($result['paymentcycle']) && empty($result['paymentcycle']) ? '' : ($type == "edit" ? '' : ($type == "view" ? 'disabled' : '')) ?> />
        </div>
    </div>
</div>

<div class="row">
    <div class="col">
        <h3 class="text-center">Finalized Meal Rate List</h3>
    </div>
</div>

<div class="row">
    <div class="col-md-4 col-sm-12">
        <div class="form-group">
            <label for="breakfast">Breakfast</label>
            <input type="number" name="breakfast" class="form-control" placeholder="Rates for breakfast" pattern="^[0-9]$" value="{{ isset($result['breakfast']) && !empty($result['breakfast']) ? $result['breakfast'] : old('breakfast') }}" <?php echo isset($type) && $type == "edit" ? '' : (isset($type) && $type == "view" ? 'readonly' : '') ?>>
        </div>
    </div>
    <div class="col-md-4 col-sm-12">
        <div class="form-group">
            <label for="lunch">Lunch</label>
            <input type="number" name="lunch" class="form-control" placeholder="Rates for lunch" pattern="^[0-9]$" value="{{ isset($result['lunch']) && !empty($result['lunch']) ? $result['lunch'] : old('lunch') }}" <?php echo isset($type) && $type == "edit" ? '' : (isset($type) && $type == "view" ? 'readonly' : '') ?>>
        </div>
    </div>
    <div class="col-md-4 col-sm-12">
        <div class="form-group">
            <label for="dinner">Dinner</label>
            <input type="number" name="dinner" class="form-control" placeholder="Rates for dinner" pattern="^[0-9]$" value="{{ isset($result['dinner']) && !empty($result['dinner']) ? $result['dinner'] : old('dinner') }}" <?php echo isset($type) && $type == "edit" ? '' : (isset($type) && $type == "view" ? 'readonly' : '') ?>>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-6 col-sm-12">
        <div class="form-group">
            <label for="evening_snacks">Evening Snacks</label>
            <input type="number" name="evening_snacks" class="form-control" placeholder="Rates for evening_snacks" pattern="^[0-9]$" value="{{ isset($result['evening_snacks']) && !empty($result['evening_snacks']) ? $result['evening_snacks'] : old('evening_snacks') }}" <?php echo isset($type) && $type == "edit" ? '' : (isset($type) && $type == "view" ? 'readonly' : '') ?>>
        </div>
    </div>
    <div class="col-md-6 col-sm-12">
        <div class="form-group">
            <label for="others">Others</label>
            <input type="number" name="others" class="form-control" placeholder="Rates for others" pattern="^[0-9]$" value="{{ isset($result['others']) && !empty($result['others']) ? $result['others'] : old('others') }}" <?php echo isset($type) && $type == "edit" ? '' : (isset($type) && $type == "view" ? 'readonly' : '') ?>>
        </div>
    </div>
</div>

@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>
                                @forelse($listMapfirstdata as $key=>$value)
                                    <tr>
                                        <th class="text-left" scope="row">{{ ++$key }}</th>
                                        <td class="text-left">{{ $value[0]['name'] }}</td>
                                        <td class="text-left">{{ $value[0]['username'] }}</td>
                                        <td class="text-left">{{ $value[0]['contactNumber'] }}</td>
                                        <td class="text-left">{{ $value[0]['designation'] }}</td>
                                        <td class="d-flex">
                                            <div class="peterriver" onclick="viewOrEdit('{{ url('viewOrEditRole') }}', 'view', '{{ $value[0]['marshalId'] }}');">View</div> 
                                        </td>
                                    </tr>
                                @empty
                                    <tr>
                                        <td colspan="7" align="center" class="tablemotfounditem">Not Found any</td>
                                    </tr>
                                @endforelse
                            </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>
                                @forelse($listMapseconddata as $key=>$value)
                                    <tr>
                                        <th class="text-left" scope="row">{{ ++$key }}</th>
                                        <td class="text-left">{{ $value[0]['name'] }}</td>
                                        <td class="text-left">{{ $value[0]['username'] }}</td>
                                        <td class="text-left">{{ $value[0]['contactNumber'] }}</td>
                                        <td class="text-left">{{ $value[0]['vendor_aggregation'] }}</td>
                                        <td class="d-flex">
                                            <div class="peterriver" onclick="viewOrEdit('{{ url('viewOrEditRole') }}', 'view', '{{ $value[0]['vendorId'] }}');">View</div> 
                                        </td>
                                    </tr>
                                @empty
                                    <tr>
                                        <td colspan="7" align="center" class="tablemotfounditem">Not Found any</td>
                                    </tr>
                                @endforelse
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endif