{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: index.blade.php ------------------------------------------------------ Use: Contract organizations list from the approved design: filter pills, search, remaining-cap column and the derived full-capacity badge. ===================================================== --}} @extends('layouts.admin') @section('title', __('admin.organizations.title')) @section('breadcrumb') @endsection @section('page') @php $canManage = auth('admin')->user()->allowed('organizations.manage'); @endphp

{{ __('admin.organizations.title') }}

{{ __('admin.organizations.subtitle') }}

@if ($canManage) {{ __('admin.organizations.add') }} @endif
{{ __('admin.organizations.info') }}
@foreach (__('admin.organizations.filters') as $key => $label) $status === $key, 'text-ink-muted hover:text-primary-600' => $status !== $key, ]) >{{ $label }} @endforeach
@if ($status !== 'all') @endif
@php $showReorder = $reorderable && $canManage; @endphp
@if ($showReorder) @endif @forelse ($organizations as $organization) @if ($showReorder) @endif @empty @endforelse
{{ __('admin.organizations.columns.order') }}{{ __('admin.organizations.columns.organization') }} {{ __('admin.organizations.columns.users') }} {{ __('admin.organizations.columns.remaining') }} {{ __('admin.organizations.columns.open_installments') }} {{ __('admin.organizations.columns.status') }} {{ __('admin.organizations.columns.actions') }}
@foreach (['up' => 'M6 15l6-6 6 6', 'down' => 'M6 9l6 6 6-6'] as $direction => $arrow)
@csrf
@endforeach
@if ($organization->logo_path) {{ $organization->name }} @else @endif {{ $organization->name }}
@fa($organization->active_users_count) {{ __('admin.organizations.users_suffix') }} @if ($organization->credit_cap === 0) @else $organization->remainingCap() > 0, 'text-secondary-500' => $organization->remainingCap() === 0])>@toman($organization->remainingCap()) {{ __('admin.organizations.of') }} @toman($organization->credit_cap) {{ __('admin.toman') }} @endif @fa($organization->open_installments_count) $organization->status === \App\Models\Organization::STATUS_ACTIVE, 'bg-secondary-50 text-secondary-500' => $organization->status === \App\Models\Organization::STATUS_FULL, 'bg-[#f1f0f5] text-ink-muted' => $organization->status === \App\Models\Organization::STATUS_INACTIVE, ])> {{ __("admin.organizations.statuses.{$organization->status}") }} {{ __('admin.organizations.details') }}
{{ __('admin.organizations.empty') }}
@if ($showReorder && $organizations->count() > 1)
{{ __('admin.organizations.order_hint') }}
@endif @if ($organizations->hasPages())
{{ $organizations->links() }}
@endif
@endsection