@extends('layouts.admin') @section('title', 'Bottle Intakes · Aromaniacs ERP') @section('overline', 'Inventory') @section('heading', 'Bottle Intakes') @section('content')
@if ($intakes->isEmpty())

No bottle intakes recorded yet.

Each intake adds ml to your stock and logs an expense automatically.

@else @foreach ($intakes as $intake) @php $remaining = (float) $intake->remaining_ml; $original = (float) $intake->volume_ml; $usedPct = $original > 0 ? max(0, min(100, (1 - $remaining / $original) * 100)) : 0; @endphp @endforeach
Date Fragrance Intent Volume Remaining Cost Buyer Actions
{{ optional($intake->purchased_at)->format('d M Y') }}
@if (! empty($intake->fragrance?->image_url)) {{ $intake->fragrance?->name }} @else
N/A
@endif
{{ $intake->fragrance?->name }}
{{ $intake->fragrance?->brand?->name }}
@if ($intake->isResaleBottle()) Full Bottle @else Decant @endif {{ number_format($original, 2) }} ml
{{ number_format($remaining, 2) }} ml
{{ number_format((float) $intake->cost_total, 2) }} {{ $intake->purchasedBy?->name ?? '—' }}
@csrf @method('DELETE')
{{ $intakes->links() }}
@endif
@endsection