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

Branch Management

Maximum five branches. Each branch has separate stock and can transfer items to another assigned branch.

{{ $branches->count() }} / 5 branches
@if($branches->count()<5)
@csrf

Add branch

@endif
@foreach($branches as $branch)

{{ $branch->name }}

{{ $branch->code }} · {{ $branch->users_count }} assigned user(s) · {{ $branch->stores->count() }} stock store(s)

{{ $branch->is_active?'Active':'Inactive' }}
@csrf @method('PUT')
@foreach($branch->stores as $store){{ $store->department->name ?? 'General' }}: {{ $store->name }}@endforeach
@if($branches->count()>1)
@csrf @method('DELETE')
@endif
@endforeach
@endsection