@extends('layouts.app') @section('title', 'Organizations') @section('content')

Organizations

All tenant organizations on the platform.

New Organization
@include('partials.alerts')
@php $modeLabel = ['owner' => 'মালিক', 'garage' => 'সংগ্রহ', 'both' => 'দুটোই']; @endphp @forelse ($organizations as $organization) @php $lu = $lastUsed[$organization->id] ?? null; $luC = $lu ? \Illuminate\Support\Carbon::parse($lu) : null; $online = $luC && $luC->gt(now()->subMinutes(10)); $recent = $luC && $luC->gt(now()->subDay()); $dot = $online ? 'success' : ($recent ? 'warning' : 'secondary'); @endphp @empty @endforelse
# Organization Contact Users Activity Status Actions
{{ $organization->id }} {{ $organization->name }} {{ $modeLabel[$organization->business_mode] ?? $organization->business_mode }} · {{ $organization->created_at?->format('d/m/Y') }} {{ $organization->email ?? '—' }} {{ $organization->phone }} {{ $organization->users_count }} {{ $online ? 'Online' : ($recent ? 'Today' : 'Offline') }} {{ $luC ? $luC->diffForHumans() : 'কখনো না' }} @if ($organization->status) Active @elseif (get_organization_option('approval_pending', $organization->id, '0') === '1') Pending approval @else Suspended @endif
@csrf
@csrf
@csrf @method('DELETE')
No organizations found.
@if ($organizations->hasPages()) @endif
@endsection