@extends('layouts.admin-main') @section('content')
# | {{__('message.original invoice')}} | {{__('message.grn')}} | {{__('message.part number')}} | {{__('message.product category')}} | {{ __('message.product name') }} | {{__('message.qty')}} | {{__('message.cost')}} | {{__('message.original wages')}} | {{__('message.total cost supplier')}} | {{__('message.weight')}} | {{__('message.gold weight')}} | {{__('message.description')}} | {{__('message.diamond size')}} | {{ __('message.note') }} | {{ __('message.user') }} | {{ __('message.updated at') }} |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{$index+1}} | {{$productQtyHistory->product?->original_invoice??''}} | {{$productQtyHistory->grn}} | {{$productQtyHistory->product?->part_number}} | {{$productQtyHistory->product->productCategory->name??''}} | {{$productQtyHistory->product->name??''}} | {{($productQtyHistory->qty)}} | @if($productQtyHistory->for_sale == 0 && $productQtyHistory->product_cost) {{number_format($productQtyHistory->product_cost??0 , 2)}} {{$currency_->currency_symbol}} @else {{number_format($productQtyHistory->product?->cost($productQtyHistory->goldWeight()) - $productQtyHistory->product?->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} @endif | {{number_format($productQtyHistory->product?->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} | @if($productQtyHistory->for_sale == 0 && $productQtyHistory->product_cost) {{number_format(($productQtyHistory->qty)*$productQtyHistory->product_cost??0 , 2)}} {{$currency_->currency_symbol}} @else {{number_format(($productQtyHistory->qty)*$productQtyHistory->product?->cost($productQtyHistory->goldWeight()) , 2)}} {{$currency_->currency_symbol}} @endif | @if($productQtyHistory->weight) {{number_format($productQtyHistory->weight??0 ,2)}} @else {{number_format($productQtyHistory->product?->weight??0 ,2)}} @endif | @if($productQtyHistory->weight) {{number_format($productQtyHistory->goldWeight()??0 ,2)}} @else {{number_format($productQtyHistory->product?->goldWeight()??0 ,2)}} @endif | {!!$productQtyHistory->product?->description!!} | {!!$productQtyHistory->product?->diamond_size!!} | {{$productQtyHistory->note??''}} | {{$productQtyHistory->user->name??''}} | {{$productQtyHistory->created_at->format('d-m-Y H:i')}} |
{{__('message.total')}} :
|
{{($productQtyHistories->sum('qty'))}}
|
{{number_format($total_costs, 2)}} {{$currency_->currency_symbol}}
|
{{number_format($total_cost_fee , 2)}} {{$currency_->currency_symbol}}
|
{{number_format($total_sum_costs , 2)}} {{$currency_->currency_symbol}}
|
{{number_format($total_weight , 2)}}
|
|