@extends('products::layouts.exporting.pdf.master') @section('koolreport')

@lang('products::product.Products')

{{$data['companyName']}}

@if($data['products']->count())
@if(!$data['isInventoryApplied'] && $data['checkContinuosInventory']) @endif @php $total_costs = 0; @endphp @forelse ($data['products'] as $product) @if(!$data['isInventoryApplied'] && $data['checkContinuosInventory']) @php $total_costs += $product->total_cost; @endphp @endif @empty @endforelse
@lang('products::product.ProductId') @lang('products::product.NameAr') @lang('products::product.Name') @lang('products::product.Type') @lang('products::product.QTY') @lang('products::product.Category') @lang('products::product.Unit') @lang('products::product.Description') @lang('products::product.Barcode') @lang('products::product.Buying Price') @lang('products::product.Selling Price')@lang('products::product.Average Cost') @lang('products::product.Total Cost')
{{ $product->identifier }} {{ $product->name_ar }} {{ $product->name_en }} {{ __($product->type) }} {{ $product->total_quantity }} {{ ($product->category()->exists()) ? $product->category->name : '' }} {{ ($product->unit()->exists()) ? $product->unit->name : ''}} {{$product->desc}} {{$product->barcode}} {{ number_format($product->buying_price,2) }} {{ number_format($product->selling_price,2) }}{{ number_format($product->average_cost,2) }} {{ number_format($product->total_cost,2) }}
@lang('products::product.No Produtcs yet')
@if(!$data['isInventoryApplied'] && $data['checkContinuosInventory'])

@lang('products::product.Total Costs') : {{$total_costs}}

@endif
@if(app()->getLocale() == 'ar')

............................................................................................ @lang('just_no_another')

@endif
@endif
@endsection