@lang('app.company') @lang('app.details')
logo
@lang('modules.accountSettings.companyName')

{{ ucwords($companyDetails->company_name) }}

@lang('modules.accountSettings.companyEmail')

{{ $companyDetails->company_email }}


@lang('modules.accountSettings.companyPhone')

{{ ucwords($companyDetails->company_phone) }}

@lang('modules.accountSettings.companyWebsite')

{{ $companyDetails->website ?? "--" }}


@lang('modules.accountSettings.companyAddress')

{!! $companyDetails->address !!}


@lang('modules.accountSettings.defaultCurrency')

{{ $companyDetails->currency->currency_symbol . ' (' .$companyDetails->currency->currency_code .')' }}

@lang('modules.accountSettings.defaultTimezone')

{{ $companyDetails->timezone }}


@lang('app.status')

@if ($companyDetails->status == 'active') @else @endif

@lang('app.lastActivity')

{{ ($companyDetails->last_login) ? $companyDetails->last_login->diffForHumans() : '--' }}


@if(isset($fields) && count($fields) > 0)

@lang('modules.projects.otherInfo')

@foreach($fields as $field)
{{ ucfirst($field->label) }}

@if( $field->type == 'text') {{$companyDetails->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'password') {{$companyDetails->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'number') {{$companyDetails->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'textarea') {{$companyDetails->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'radio') {{ !is_null($companyDetails->custom_fields_data['field_'.$field->id]) ? $companyDetails->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'select') {{ (!is_null($companyDetails->custom_fields_data['field_'.$field->id]) && $companyDetails->custom_fields_data['field_'.$field->id] != '') ? $field->values[$companyDetails->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'checkbox') {{ !is_null($companyDetails->custom_fields_data['field_'.$field->id]) ? $field->values[$companyDetails->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'date') {{ !is_null($companyDetails->custom_fields_data['field_'.$field->id]) ? \Carbon\Carbon::parse($companyDetails->custom_fields_data['field_'.$field->id])->format('Y-m-d') : '--'}} @endif

@endforeach
@endif

@lang('app.package') @lang('app.details')

@lang('app.package') @lang('app.name') {{ $companyDetails->package->name }}
@lang('app.menu.employees') @lang('app.quota') {{ $companyDetails->employees->count() }} / {{ $companyDetails->package->max_employees }}
@lang('app.menu.storage') @if($companyDetails->package->storage_unit == 'mb') {{ $companyDetails->file_storage->count() > 0 ? round($companyDetails->file_storage->sum('size')/(1000*1024), 4). ' MB' : 'Not used' }} @else {{ $companyDetails->file_storage->count() > 0 ? round($companyDetails->file_storage->sum('size')/(1000*1024*1024), 4). ' MB' : 'Not Used' }} @endif / @if($companyDetails->package->max_storage_size == -1) @lang('app.unlimited') @else {{ $companyDetails->package->max_storage_size }} ({{ strtoupper($companyDetails->package->storage_unit) }}) @endif
@lang('app.price')

@lang('app.monthly') @lang('app.price'): {{ $companyDetails->package->currency->currency_symbol . $companyDetails->package->monthly_price }}

@lang('app.annual') @lang('app.price'): {{ $companyDetails->package->currency->currency_symbol . $companyDetails->package->annual_price }}

@lang('modules.package.licenseExpiresOn') {{ ($companyDetails->licence_expire_on) ? $companyDetails->licence_expire_on->toFormattedDateString() . ' ('. $companyDetails->licence_expire_on->diffForHumans() .')' : '--' }}
@lang('app.change') @lang('app.package') @lang('modules.superadmin.loginAsCompany')