<div class="body-content">
    <div class="companies Kanban-view">
        <div class="companies-box">
            <div class="companies-body">
                <div class="row">
                    @foreach($companies as $key=>$row)
                        <div class="col-lg-4">
                            <div class="companies-box">
                                <div class="company-head">
                                    <div class="l-side">
                                        <div class="form-check mb-0 ps-0">
                                            <label class="form-check-label d-block" for="task1">
                                                {{$key}} <span class="num"> {{count($row)}} </span>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                @foreach($row as $company)
                                    <div class="company-row">
                                        <div class="row align-items-center">
                                            <div class="col-12">
                                                <div class="main-inf mb-2">
                                                    <div class="icon">
                                                        <img src="{{asset($company->image)}}" alt="">
                                                    </div>
                                                    <div class="cont">
                                                        <h6 class="com-name"> {{$company->title}} </h6>
                                                        <div class="text"> {{$company->description}} </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-12">
                                                <a href="#" class="text mt-2"> <i class="fal fa-globe me-1"></i> {{$company->domain}} </a>
                                            </div>
                                            <div class="col-12">
                                                <div class="text mt-2"> <i class="fal fa-map-marker me-1"></i> {{$company->address}} </div>
                                            </div>
                                            <div class="col-12">
                                                <div class="text mt-2"> <i class="fal fa-vector-square me-1"></i> Sector Name </div>
                                            </div>
                                            <div class="btm-inf">

                                                <span class="date"> <i class="fal fa-calendar me-1"></i> {{$company->date}} </span>
                                            </div>
                                        </div>
                                        <div class="dropdown float-dropdown">
                                            <button class="btn bg-transparent border-0 p-0 dropdown-toggle no-after" type="button" data-bs-toggle="dropdown" aria-expanded="false">
                                                <i class="fas fa-ellipsis-v"></i>
                                            </button>
                                            <ul class="dropdown-menu">
                                                @if(auth()->user()->canAccess('companies','update') && $company->lock == 0)
                                                    <a href="#0" onclick="openModel(this)" action="{{ route ('employee.companies.edit', $company->id) }}" class="dropdown-item" title="{{ __('dashboard.edit') }}"> <i class="fal fa-pen me-1"></i> {{ __('dashboard.edit') }} </a>
                                                @endif
                                                @if(auth()->user()->canAccess('companies','delete'))
                                                    @if($company->deleted_at ?? null)
                                                        <li><a href="{{ route ('employee.companies.restore', $company->id) }}" data-method="put" class="dropdown-item rowAction" title="{{ __('dashboard.restore') }}"><i class="fal fa-trash me-1"></i>{{ __('dashboard.restore') }} </a></li>
                                                    @else
                                                        <li><a href="{{ route ('employee.companies.destroy', $company->id) }}" data-method="delete" class="dropdown-item rowAction" title="{{ __('dashboard.trash') }}"> <i class="fal fa-trash me-1"></i> {{ __('dashboard.trash') }} </a></li>
                                                    @endif
                                                @endif
                                            </ul>
                                        </div>
                                    </div>
                                @endforeach
                            </div>
                        </div>
                    @endforeach
                </div>
            </div>
        </div>
    </div>
</div>
