@extends('layouts.vertical', ['pageTitle' => 'Companies Management']) @section('page-title') @include('layouts.partials/app-pagetitle', [ 'pageTitle' => 'COMPANIES', 'pageSubTitle1' => 'Unity ERP', 'pageSubTitle2' => 'Settings' ])
@endsection @section('content')
Companies
@can('companies.create') @endcan
@if(session('success')) @endif @if(session('error')) @endif
@forelse($companies as $company) @empty @endforelse
Name RFC Email City Branches Status Actions
{{ $company->name }}
{{ $company->legal_name }}
{{ $company->rfc }} {{ $company->email ?? '-' }} {{ $company->city ?? '-' }} {{ $company->branches->count() }} @if($company->is_active) Active @else Inactive @endif @can('companies.view') @endcan @if(auth()->user()->current_company_id !== $company->id && auth()->user()->hasAccessToCompany($company->id))
@csrf
@endif @can('companies.edit') @endcan @can('companies.delete')
@csrf @method('DELETE')
@endcan
No companies found.
{{ $companies->links() }}
@endsection @push('scripts') @endpush