Company List

@foreach ($companies as $company) @php $count = count($company->financial_years); @endphp @foreach ($company->financial_years as $index => $financial_year) @if ($index === 0) @endif @endforeach @endforeach
Company Code
(Used In App)
Company Name Role Financial Year Date Created Action
{{ $company->company_code ?? '' }} {{ $company->company_name ?? '' }} @if ($company->pivot->is_super_admin) Super Admin @else @php $role = $company->pivot->role_id; @endphp {{ App\Models\Role::findOrFail($role)->role_name }} @endif {{ $financial_year->start_date ? $financial_year->start_date->format('Y-M-d') : '' }} - {{ $financial_year->end_date ? $financial_year->end_date->format('Y-M-d') : '' }} {{ $financial_year->created_at }} @if ($index === 0) @endif