@extends('layouts.app') @section('title', 'Companies - EKINPAY') @section('page-title', 'Companies Management') @section('content')
@forelse($companies as $company) @empty @endforelse
Company
Contact
Plan
Plan Expires
Status
Created
Actions
{{ $company->name }}
{{ $company->type }}
{{--
codevibe.ekinpay.com
--}}
{{ $company->email }}
{{ $company->phone_number ?? 'N/A' }}
@if($company->location)
{{ $company->location }}
@endif
@if($company->plan && $company->planDetails) {{ ucfirst($company->planDetails->name) }} @else NO PLAN @endif @if($company->plan_expire_date) @php $expiresAt = \Carbon\Carbon::parse($company->plan_expire_date); $isExpired = $expiresAt->isPast(); $daysUntilExpiry = now()->diffInDays($expiresAt, false); $isExpiringSoon = !$isExpired && $daysUntilExpiry >= 0 && $daysUntilExpiry <= 5; @endphp {{ $expiresAt->format('M d, Y') }} @if($isExpired) Expired @elseif($isExpiringSoon) Expires Soon @endif @else No expiry @endif @if($company->is_active) Active @else Inactive @endif {{ $company->created_at->format('M d, Y') }}

No companies yet

@if($companies->hasPages())
{{ $companies->links() }}
@endif
@endsection