@extends('layouts.admin') @section('content')

{{ __('Customer Management') }}

{{ __('Manage all tenant accounts and validity') }}

{{ __('Total Customers') }}

{{ $companies->total() }}

{{ __('Active') }}

{{ $companies->where('status', 1)->count() }}

{{ __('Expired / Disabled') }}

{{ $companies->where('status', 0)->count() }}

@forelse($companies as $company) @empty @endforelse
{{ __('Customer Info') }} {{ __('Business Type') }} {{ __('Status') }} {{ __('Accounts / Machines') }} {{ __('Service Terms') }} {{ __('Actions') }}
{{ $company->name }}
{{ $company->code }}
{{ __('Original:') }} {{ __($company->original_type === 'buyout' ? 'Buyout' : 'Lease') }}
{{ __('Current:') }} {{ __($company->current_type === 'buyout' ? 'Buyout' : 'Lease') }}
@if($company->status) {{ __('Active') }} @else {{ __('Disabled') }} @endif
{{ $company->users_count }} {{ __('Users') }}
{{ $company->machines_count }} {{ __('Machines') }}
@if($company->current_type === 'lease')
{{ __('Contract') }}
{{ $company->start_date ? $company->start_date->format('Y-m-d') : '--' }} ~ {{ $company->end_date ? $company->end_date->format('Y-m-d') : __('Permanent') }}
@endif @if($company->current_type === 'buyout')
{{ __('Warranty') }}
{{ $company->warranty_start_date ? $company->warranty_start_date->format('Y-m-d') : '--' }} ~ {{ $company->warranty_end_date ? $company->warranty_end_date->format('Y-m-d') : '--' }}
{{ __('Software') }}
{{ $company->software_start_date ? $company->software_start_date->format('Y-m-d') : '--' }} ~ {{ $company->software_end_date ? $company->software_end_date->format('Y-m-d') : '--' }}
@endif
@if($company->status) @else @endif

{{ __('No customers found') }}

{{ $companies->links('vendor.pagination.luxury') }}

@csrf

{{ __('Company Information') }}

{{ __('Original Type') }}: *
{{ __('Current Type') }}: *

{{ __('Initial Admin Account') }} ({{ __('Optional') }})

@foreach($template_roles as $role) @endforeach

{{ __('Contact & Details') }}

{{ __('Feature Settings') }}

{{ __('Show material code field in products') }}

{{ __('Show points rules in products') }}