@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Branches & Warehouses')) @section('content') @include('admin.warehouse.partials.styles') @php $items = $warehouse->getCollection(); $activeCount = $items->where('status', 1)->count(); $primaryCount = $items->where('defaults', 1)->count(); @endphp

{{ __('Branches & Warehouses') }}

{{ __('Manage office branches and warehouse locations used across the system.') }}

@can('Branch-create') @endcan
{{ $warehouse->total() }}
{{ __('Total') }}
{{ $activeCount }}
{{ __('Active') }}
{{ $primaryCount }}
{{ __('Primary') }}
{{ __('All branches / warehouses') }}
@if(auth()->user()->user_type == 'admin') @endif @forelse($warehouse as $key => $row) @if($row != null && auth()->user()->user_type == 'admin') @endif @empty @endforelse
# {{ __('Name') }} {{ __('Address') }} {{ __('Phone') }}{{ __('Status') }}{{ __('Action') }}
{{ ($key + 1) + ($warehouse->currentPage() - 1) * $warehouse->perPage() }} {{ $row->name }} @if((int) $row->defaults === 1) {{ __('Primary') }} @endif {{ $row->address ?: '—' }} {{ $row->phone ?: '—' }} @can('Branch-edit') {{ __('Edit') }} @endcan
{{ __('No branches or warehouses found.') }}
@if($warehouse->hasPages()) @endif
@endsection @section('modal') @include('modals.delete_modal') @endsection @section('script') @endsection