@extends('master') @section('content') @if($message = session('error'))
{{ $message }}
@endif

Company List

@foreach($companies as $company) @endforeach
Name Contact No. Address User Role Status Action
{{ $company->name }} {{ $company->contact_no }} {{ $company->address }} @foreach($company->users as $user) {{ $user->name }} @endforeach @foreach($company->users as $user) @if($user->role_id == 1) Admin @elseif($user->role_id== 2) Company Admin @endif @endforeach @if($company->status == 100) Active @elseif($company->status == 0) Inctive @endif Edit
@endsection @push('scripts') @endpush