@extends('layouts.app') @section('title', __('Factories')) @section('content')

{{ __('Factories') }}

{{ __('Add Factory') }}

{{ $factories->total() }}

{{ __('Production Facilities Tracked') }}

92%

{{ __('Avg. Utility') }}

{{ __('Operational') }}

{{ __('Current Status') }}

@forelse($factories as $factory) @empty @endforelse
{{ __('Factory Name') }} {{ __('Parent Company') }} {{ __('Manager') }} {{ __('Status') }} {{ __('Actions') }}
{{ $factory->name }} {{ $factory->address ?? __('No address') }}
@if($factory->company) {{ $factory->company->name }} @else - @endif {{ $factory->manager ? $factory->manager->name : __('Unassigned') }} @if($factory->status == 'active') {{ __('Active') }} @else {{ __('Inactive') }} @endif
{{ __('No factories found.') }}
@if($factories->hasPages()) @endif
@endsection