@extends('layouts.app') @section('title', $company->name.' — EasyHR Billing') @section('content')

{{ $company->name }}

{{ $company->base_url }}
Edit Fees
@csrf @if ($company->is_active) @else @endif
@if ($overviewError)
Live company data could not be loaded: {{ $overviewError }}
@endif
Current Active Users
{{ $overview['active_staff_count'] ?? '—' }}
Settlement Pending
{{ $overview['settlement_pending_count'] ?? '—' }}
Billable Now
{{ $overview['current_billable_count'] ?? '—' }}
Open Due (BDT)
{{ \App\Support\BillingPeriod::formatMoney($openDue) }}

Account

Access: @if ($company->is_active) Active @else Inactive @endif

@if ($company->deactivated_at)

Deactivated {{ $company->deactivated_at->timezone('Asia/Dhaka')->format('d M Y H:i') }}

@endif

Installation Fee {{ \App\Support\BillingPeriod::formatMoney($company->installation_fee) }}

Per Active User {{ \App\Support\BillingPeriod::formatMoney($company->per_user_fee) }}

Monthly Minimum {{ \App\Support\BillingPeriod::formatMoney($company->monthly_minimum) }}

Current Users

@forelse (($overview['users'] ?? []) as $user) @empty @endforelse
Name Code Designation Branch Status
{{ $user['name'] }} {{ $user['user_id'] }} {{ $user['designation'] ?: '—' }} {{ $user['branch'] ?: '—' }} @if (($user['kind'] ?? '') === 'settlement_pending') Settlement Pending @else Active @endif
No Current Users Returned.

Recent Invoices

@forelse ($company->invoices as $invoice) @empty @endforelse
# Type Period Total Status
{{ $invoice->id }} {{ $invoice->type === 'installation' ? 'Installation' : 'Monthly' }} {{ $invoice->period ? \App\Support\BillingPeriod::label($invoice->period) : '—' }} {{ \App\Support\BillingPeriod::formatMoney($invoice->total) }} {{ ucwords(str_replace('_', ' ', $invoice->status)) }}
No Invoices Yet.
@endsection