@extends(isset($input['print']) && $input['print']==1 ? 'layouts.general' : 'layouts.app') @section('link') @if(isset($input) && (!isset($input['print']) || $input['print']==1)) @endif @endsection @section('style') @endsection @section('content')
{{__('texte.references_arr.stocks.code')}} | {{__('texte.references_arr.stocks.product')}} | {{__('texte.references_arr.stocks.quantity')}} | {{__('texte.references_arr.stocks.price')}} | {{__('texte.references_arr.stocks.value')}} | {{__('texte.references_arr.stocks.barcode')}} |
---|---|---|---|---|---|
{{__('texte.references_arr.stocks.unsold_goods_in')}} {{$stock->storage_name}} |
|||||
{{$stock->producer_name ?? 'N/A'}} |
|||||
{{$stock->product_id}} | {{$stock->name}} | {{$stocks->where('product_id',$stock->product_id)->where('storage_id',$stock->storage_id)->sum('quantity')}} | {{$stock->price}} | {{number_format($stocks->where('product_id',$stock->product_id)->where('storage_id',$stock->storage_id)->sum('quantity')*$stock->price,2,'.',' ')}} | {{$stock->piece_barcode}} |
{{$stock->expiring_date!=null ? date('d.m.Y',strtotime($stock->expiring_date)) : ''}} | {{$stock->batch}} | {{$stock->quantity}} | {{$stock->price}} | {{number_format($stock->quantity*$stock->price,2,'.',' ')}} | {{$stock->piece_barcode}} |
{{__('texte.references_arr.stocks.total_for')}} {{$stock->storage_name}} | {{number_format($stocks->where('storage_id',$stock->storage_id)->sum('total_value'),2,'.',' ')}} | ||||
Всичко за фирмата | {{number_format($stocks->sum('total_value'),2,'.',' ')}} |