@extends('layouts/gnr_layout') @section('title', '| Group') @section('content') @include('successMsg') @php $foreignGroupIds = DB::table('gnr_company')->distinct()->pluck('groupId')->toArray(); @endphp

GROUP LIST

{{ csrf_field() }} @foreach($groups as $group) @endforeach
SL# Name Email Phone Address Website Action
{{++$no}} {{$group->name}} {{$group->email}} {{$group->phone}} {{$group->address}} {{$group->website}}   @php if (in_array($group->id, $foreignGroupIds)) { $canDelete = 0; } else{ $canDelete = 1; } @endphp
@include('dataTableScript') @endsection