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

{{$settings_->shop_name}}

{{__('message.cashier')}} : {{Auth::user()->name}}
{{__('message.invoice date')}} : {{now()->format('d-m-Y H:i')}}
{{__('message.location')}} : {{$settings_->address}}
{{__('message.phone number')}} : {{$settings_->phone}}
@if($number_of_days > 1)
{{__('message.date')}} : {{ date('d/m/Y' , strtotime($start_date)) }} - {{ date('d/m/Y' , strtotime($end_date)) }}
@else
{{__('message.date')}} : {{ date('d-m-Y' , strtotime($start_date)) }}
@endif @if($q)
{{__('message.grn')}} : {{$q}}
@endif
@if($number_of_days > 1)

{{__('message.grn monthly report')}}

@else

{{__('message.grn daily report')}}

@endif
@foreach($productQtyHistories as $index => $productQtyHistory) @endforeach
# {{__('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)}} {{-- {{number_format($productQtyHistory->product?->cost($productQtyHistory->goldWeight()) - $productQtyHistory->product?->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}}--}} @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->weight) - $productQtyHistory->product?->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} @endif {{number_format($productQtyHistory->product?->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} {{-- {{number_format(($productQtyHistory->qty)*$productQtyHistory->product?->cost($productQtyHistory->goldWeight()) , 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->weight) , 2)}} {{$currency_->currency_symbol}} @endif {{-- {{number_format($productQtyHistory->product?->weight ,2)}}--}} @if($productQtyHistory->weight) {{number_format($productQtyHistory->weight??0 ,2)}} @else {{number_format($productQtyHistory->product?->weight??0 ,2)}} @endif {{-- {{number_format($productQtyHistory->product?->goldWeight() ,2)}}--}} @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_cost - $total_cost_fee , 2)}} {{$currency_->currency_symbol}}--}} {{number_format($total_costss - $total_cost_fee, 2)}} {{$currency_->currency_symbol}}
{{number_format($total_cost_fee , 2)}} {{$currency_->currency_symbol}}
{{-- {{number_format($total_sum_cost , 2)}} {{$currency_->currency_symbol}}--}} {{number_format($total_costss, 2)}} {{$currency_->currency_symbol}}
{{number_format($total_weight , 2)}}
@endsection @section('scripts') @endsection