@extends('layouts.app') @section('title', 'Company Details - EKINPAY') @section('page-title', 'Company Details') @section('content')

Company Details



@csrf
@csrf

Delete

Basic Information

Company Name: {{ $company->name }}
{{--
Subdomain: codevibe.ekinpay.com
--}}
Email: {{ $company->email }}
Phone: {{ $company->phone_number ?? 'Not provided' }}
Location: {{ $company->location ?? 'Not provided' }}
Status: @if($company->is_active) Active @else Inactive @endif

Account Details

Plan: {{ $company->planDetails?->name ?? 'No plan assigned' }}
Plan Expires: {{ $company->plan_expire_date ? $company->plan_expire_date->format('M d, Y') : 'N/A' }}
Extra Customers: {{ $company->extra_customers ?? 0 }}
Commission: {{ $currencySymbol }}{{ number_format($company->commission_amount ?? 0, 2) }}
Last Login: {{ $company->last_login_at ? $company->last_login_at->format('M d, Y H:i') : 'Never' }}

Recent Orders

@forelse($orders as $order) @empty @endforelse
Order ID Plan Amount Payment Type Status Date
#{{ $order->order_id }}
@if($order->txn_id)
{{ $order->txn_id }}
@endif
{{ $order->plan_name }} {{ $currencySymbol }}{{ number_format($order->price, 0) }} {{ ucfirst($order->payment_type ?? 'N/A') }} @if($order->payment_status === 'completed') Completed @elseif($order->payment_status === 'pending') Pending @elseif($order->payment_status === 'failed') Failed @else {{ ucfirst($order->payment_status ?? 'Unknown') }} @endif
{{ $order->created_at->format('M d, Y') }}
{{ $order->created_at->format('h:i A') }}

No orders found

This company hasn't made any orders yet.

@if(method_exists($orders, 'hasPages') && $orders->hasPages())
{{ $orders->links() }}
@endif
@endsection @push('scripts') @endpush