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

{{ $warehouse->name }}

Code: {{ $warehouse->code }}

@if($warehouse->type == "pos") POS Location @else Warehouse @endif
Back to List Edit Warehouse
@csrf @method('DELETE')
@if($warehouse->is_active) @else @endif
Status
{{ $warehouse->is_active ? 'Active' : 'Inactive' }}
Inventory Items
{{ $inventoryCount }}
Inventory Value
RM {{ number_format($inventoryValue, 2) }}

Warehouse Information

Warehouse Code

{{ $warehouse->code }}

Warehouse Name

{{ $warehouse->name }}

@if($warehouse->address || $warehouse->city || $warehouse->state)

Address

@if($warehouse->address) {{ $warehouse->address }}
@endif @if($warehouse->city || $warehouse->state || $warehouse->postal_code) {{ $warehouse->postal_code }} {{ $warehouse->city }}@if($warehouse->city && $warehouse->state), @endif{{ $warehouse->state }}
@endif @if($warehouse->country) {{ $warehouse->country }} @endif

@endif @if($warehouse->contact_person || $warehouse->phone || $warehouse->email)

Contact Information

@if($warehouse->contact_person)

Contact Person

{{ $warehouse->contact_person }}

@endif @if($warehouse->phone)

Phone

{{ $warehouse->phone }}

@endif @if($warehouse->email)

Email

{{ $warehouse->email }}

@endif
@endif @if($warehouse->notes)

Notes

{{ $warehouse->notes }}

@endif

Created At

{{ \Carbon\Carbon::parse($warehouse->created_at)->format('d M Y H:i') }}

Last Updated

{{ \Carbon\Carbon::parse($warehouse->updated_at)->format('d M Y H:i') }}

@endsection