@extends('layouts.app') @section('title', 'পণ্য ম্যানেজমেন্ট') @section('page-title', 'পণ্য ম্যানেজমেন্ট') @section('content')
সিলিন্ডার পণ্য তালিকা
মোট {{ $types->count() }}টি পণ্য
নতুন পণ্য যোগ
{{-- Low Stock Alert --}} @php $lowStockTypes = $types->filter(fn($t) => $t->is_low_stock && $t->status === 'active'); @endphp @if($lowStockTypes->count() > 0)
কম স্টক সতর্কতা! {{ $lowStockTypes->pluck('name')->implode(', ') }} — স্টক কম আছে।
@endif
@forelse($types as $type)
{{-- Header --}}
{{ $type->name }}
@if($type->sku) {{ $type->sku }} @endif
{{ $type->status === 'active' ? 'সক্রিয়' : 'নিষ্ক্রিয়' }} @if($type->is_low_stock && $type->status === 'active') কম স্টক @endif
{{-- Price Grid --}}
ক্রয়মূল্য
৳{{ number_format($type->purchase_price, 0) }}
বিক্রয়মূল্য
৳{{ number_format($type->selling_price, 0) }}
লাভের হার
{{ $type->profit_margin }}%
ডিপোজিট
৳{{ number_format($type->deposit_amount, 0) }}
{{-- Details --}}
ওজন {{ $type->weight_kg }} কেজি
মোট সিলিন্ডার {{ $type->cylinders_count }} / ভর্তি: {{ $type->full_count }}
কম স্টক সতর্কতা {{ $type->low_stock_alert }} পিস
@if($type->description)

{{ Str::limit($type->description, 80) }}

@endif {{-- Actions --}}
সম্পাদনা সিলিন্ডার যোগ @if($type->cylinders_count === 0)
@csrf @method('DELETE')
@endif
@empty

কোনো পণ্য যোগ করা হয়নি।

প্রথম পণ্য যোগ করুন
@endforelse
@endsection