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

Stocks PDF Excel

@can('authorize', 'add_stocks') Enregistrer Un Nouveau Stock @endcan
{{-- --}} {{-- --}} @foreach ($stocks as $key => $stock) {{-- --}} {{-- --}} @endforeach
Date Produit Fournisseur Quantité InitialeTVAPU Achat PT Achat Statut
{{ \Carbon\Carbon::create($stock->date)->isoFormat('ll') }}
@if ($stock->product)
{{ $stock->product->name }} #REF {{ $stock->product->reference }} | CAT: {{ $stock->product->categories->pluck('name')->join(', ') ?? '' }}
@endif
{{ $stock->supplier->name ?? '' }}
@if ($stock->product->unitMeasures?->last()->unit != $stock->product->unitMeasures?->first()->unit)
{{ $stock->wholesale_initial_quantity }} {{ $stock->wholesaleMeasure->unit }}s
1 {{ $stock->wholesaleMeasure->unit }} => {{ $stock->in_detail_quantity }} {{ $stock->inDetailMeasure->unit }}s
@else
{{ $stock->in_detail_quantity }} {{ $stock->inDetailMeasure->unit }}s
@endif
{{ ($stock->tva)??0 }}
@if ($stock->product->unitMeasures?->last()->unit != $stock->product->unitMeasures?->first()->unit)
1 {{ $stock->wholesaleMeasure->unit }} = {{ $stock->wholesale_unit_purchase_price }} FCFA
@endif
1 {{ $stock->inDetailMeasure->unit }} = {{ $stock->in_detail_unit_purchase_price }} FCFA
{{ $stock->total_purchase_cost }} FCFA
{{ $stock->state->name }}
@php $stock->paymentMethod @endphp
@if (request()->is('stocks') || request()->is('stocks/*')) @can('authorize', 'add_stocks') @includeIf('backend.stocks.create') @endcan @can('authorize', 'browse_stocks') @includeIf('backend.stocks.show') @endcan @can('authorize', 'edit_stocks') @includeIf('backend.stocks.edit') @endcan @can('authorize', 'delete_stocks') @includeIf('backend.stocks.delete') @endcan @endif @endsection @push('scripts') @endpush