@extends('layouts.vertical', ['pageTitle' => 'Company Details']) @section('page-title') @include('layouts.partials/app-pagetitle', [ 'pageTitle' => 'COMPANY DETAILS', 'pageSubTitle1' => 'Unity ERP', 'pageSubTitle2' => 'Settings' ])
@endsection @section('content')
Company Information
@can('companies.edit') @endcan
Company Name: {{ $company->name }}
Legal Name: {{ $company->legal_name }}
RFC: {{ $company->rfc }}
Tax Regime: {{ $company->tax_regime ?? '-' }}
Status: @if($company->is_active) Active @else Inactive @endif
Email: {{ $company->email ?? '-' }}
Phone: {{ $company->phone ?? '-' }}
Website: @if($company->website) {{ $company->website }} @else - @endif
Created: {{ $company->created_at->format('M d, Y') }}
Updated: {{ $company->updated_at->format('M d, Y') }}
Address
@if($company->street || $company->city || $company->state)

@if($company->street) {{ $company->street }} @if($company->ext_number) #{{ $company->ext_number }} @endif @if($company->int_number) Int. {{ $company->int_number }} @endif @endif

@if($company->neighborhood) {{ $company->neighborhood }}, @endif @if($company->city) {{ $company->city }}, @endif @if($company->state) {{ $company->state }} @endif @if($company->zip_code) {{ $company->zip_code }} @endif

{{ $company->country ?? 'Mexico' }}

@else

No address registered

@endif
Branches
@can('branches.create') @endcan
@if($company->branches->count() > 0)
@foreach($company->branches as $branch) @endforeach
Name City Phone Status
{{ $branch->name }} {{ $branch->city ?? '-' }} {{ $branch->phone ?? '-' }} @if($branch->is_active) Active @else Inactive @endif
@else

No branches registered

@endif
Assigned Users
@if($company->users->count() > 0)
@foreach($company->users as $user) @endforeach
Name Email Role in Company Status
{{ $user->name }} {{ $user->email }} {{ $user->pivot->role ?? 'Member' }} @if($user->pivot->is_active) Active @else Inactive @endif
@else

No users assigned

@endif
Company Logo
@if($company->logo) @else
No logo uploaded
@endif
Statistics
Branches: {{ $company->branches->count() }}
Users: {{ $company->users->count() }}
Active Users: {{ $company->users->where('pivot.is_active', true)->count() }}
Actions
@can('companies.edit') Edit Company @endcan @if(auth()->user()->current_company_id !== $company->id && auth()->user()->hasAccessToCompany($company->id))
@csrf
@endif Back to List
@endsection