@extends('admin.layouts.master') @section('content')

Company List

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif
@foreach($companies as $key=>$row) @if($row->user) @php $status = 0; if(!$row->user->email_verified_at) $status = 'Not Verified'; else $status = 'Verified'; @endphp @endif @endforeach
Id Company Name User Name Contact Employees Limit Registered Employees Invitation Password Registered Date Login Count Register Count Status Action
{{$row->id}} {{$row->company_name}} {{$row->companyUser->first_name." ".$row->companyUser->last_name}} {{$row->companyUser->mobile}} {{$row->no_of_employees}} {{$row->registered_employee}} {{$row->invitation_password}} {{date("d M Y",strtotime($row->created_at))}} {{$row->login_count}} {{$row->register_count}} {{$status}} @if($row->user->email_verified_at) @if($row->user->status == 3) @elseif($row->user->status <= 2) @endif
{{ method_field('POST') }} {{ csrf_field() }}
@endif @if($row->login_count > 0 || $row->register_count > 0) @else @endif
@endsection