@extends('layouts.app') @section('content')

Stok Dağıtımları

Yeni Dağıtım Planla

Toplam

{{ $stats['total'] }}

Planlanan

{{ $stats['planned'] }}

Gönderilen

{{ $stats['sent'] }}

Başarısız

{{ $stats['failed'] }}

Tamamlanan

{{ $stats['completed'] }}

@forelse($allocations as $allocation) @empty @endforelse
Ürün Hedef Hesap Miktar Birim Maliyet Toplam Tutar Durum Oluşturma Tarihi İşlemler
{{ $allocation->invoiceLine->product->name ?? 'Bilinmeyen Ürün' }} {{ $allocation->targetAccount->account_name ?? 'Bilinmeyen Hesap' }} {{ number_format($allocation->allocated_quantity, 2, ',', '.') }} {{ number_format($allocation->unit_cost, 2, ',', '.') }} {{ config('app.currency', 'TRY') }} {{ number_format($allocation->total_cost, 2, ',', '.') }} {{ config('app.currency', 'TRY') }} @switch($allocation->status) @case('planned') Planlanan @break @case('sent') Gönderilen @break @case('failed') Başarısız @break @case('completed') Tamamlanan @break @case('rollback') Geri Alınan @break @default {{ ucfirst($allocation->status) }} @endswitch {{ $allocation->created_at->format('d.m.Y H:i') }}
Detay @if(in_array($allocation->status, ['planned', 'failed'])) Düzenle
@csrf @method('DELETE')
@endif @if($allocation->status === 'planned') Gönder @elseif($allocation->status === 'failed') Tekrar Dene @elseif($allocation->status === 'sent' || $allocation->status === 'completed') Geri Al @endif
Herhangi bir stok dağıtımı bulunamadı.
@if($allocations->hasPages())
{{ $allocations->links() }}
@endif
@endsection