@extends('layouts.admin-main') @section('content')
{{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}}
@if($productCategory->children->count('id') >= 1)
{{-- --}}
@if($productCategory->name == 'ផ្លាកទីន' || $productCategory->name == 'Platinum' || $productCategory->name == 'แพลตตินัม')
@endif @endif
@if($productCategory->name == 'មាស' || $productCategory->name == 'Gold' || $productCategory->name == 'ทอง') @else @endif @if($productCategory->fixed_price) @else @endif @foreach($build_stocks as $index => $build_stock) @if($productCategory->name == 'មាស' || $productCategory->name == 'Gold' || $productCategory->name == 'ทอง') @else @endif @if($productCategory->fixed_price) @else @endif @endforeach @if(!$productCategory->fixed_price) @if($productCategory->name=='Platinum'|| $productCategory->name=='ផ្លាកទីន'||$productCategory->name=='แพลตตินัม' || $productCategory->name == 'ផលិតផលបន្ថែម' || $productCategory->name == 'Other Stock' || $productCategory->name == 'Extra Stock') @endif @else @endif
# {{ __('message.part number') }} {{ __('message.product category') }} {{ __('message.name') }} {{ __('message.price') }} {{ __('message.qty') }}{{ __('message.weight') }}{{ __('message.gold weight') }}
@if($build_stock->image) @else @endif
@if($build_stock->productCategory->fixed_price)

{{__('message.gia number')}}

:{{$build_stock->gia_number}}
@endif

{{__('message.cost')}}

:{{ number_format($build_stock->sellingCost(), 2) }} {{$currency_->currency_symbol??''}}

{{__('message.wages')}} @if($category->fixed_price == false) (គិតជាលី) @endif

: @if($build_stock->productCategory->fixed_price) {{number_format($build_stock->wages??0 , 2)}} {{$currency_->currency_symbol}} @else @if($build_stock->fixed_price) {{number_format($build_stock->wages??0 , 2)}} {{$currency_->currency_symbol}} @else {{number_format($build_stock->wages_in_weight??0 , 2)}} @endif @endif

{{__('message.original wages')}} @if($category->fixed_price == false || $product->fixed_price) (គិតជាលី) @endif

: @if($build_stock->productCategory->fixed_price) {{number_format($build_stock->original_wages??0 , 2)}} {{$currency_->currency_symbol}} @else @if($build_stock->fixed_price) {{number_format($build_stock->original_wages??0 , 2)}} {{$currency_->currency_symbol}} @else {{number_format($build_stock->original_wages_in_weight??0 , 2)}} @endif @endif

{{__('message.weight')}}

: {{number_format($build_stock->weight , 2)}} @if($build_stock->weight_description) ({{$build_stock->weight_description}}) @endif

{{__('message.user')}}

{{__('message.is_active')}}

: @if ($build_stock->is_active) @else @endif

{{__('message.created at')}}

: {{date('d-m-y H:i' , strtotime($build_stock->created_at))}}
@if($build_stock->diamond_size)

{{__('message.diamond size')}}

:{!!$build_stock->diamond_size??0!!}
@endif
{{-- @include('products.card-footer')--}}

{{__('message.supplier')}}

:{{$build_stock->supplier->name??''}}

{{__('message.supplier rate')}}

:{{number_format($build_stock->supplier_rate??0 , 2)}}

{{__('message.phone')}}

:{{$build_stock->supplier->phone??''}}

{{__('message.note')}}

:{{$build_stock->supplier->note??''}}
@if($build_stock->buildStockProductAttributes->count() > 0)

{{__('message.product attribute')}}

@foreach ($build_stock->buildStockProductAttributes as $i => $productAttribute) @endforeach
# {{ __('message.name') }} {{ __('message.price') }} {{ __('message.qty') }} {{ __('message.cost') }} {{ __('message.action') }}
{{ $i + 1 }} {{$productAttribute->name}} {{number_format($productAttribute->price , 2)}} {{$currency_->currency_symbol}} {{$productAttribute->qty}} {{number_format($productAttribute->cost ,2)}} {{$currency_->currency_symbol}}
{{ csrf_field() }}
@else

{{__('message.product attribute is empty')}}

@endif
@if($build_stock->description)
{!!$build_stock->description!!}
@else

{{__('message.description is empty')}}

@endif
{{__('message.total sale price')}} : {{number_format($totalPrice,2)}} {{$currency_->currency_symbol??''}} {{number_format($totalQty,0)}} {{number_format($totalWeight , 2)}} {{number_format($totalGoldWeight,2)}}
{{__('message.total wages sale')}} : {{number_format($totalWage,2)}} {{$currency_->currency_symbol??''}}
{{__('message.total cost')}} : {{number_format($totalCost,2)}} {{$currency_->currency_symbol??''}}
{{__('message.total original wages')}} : {{number_format($totalOriginalWage,2)}} {{$currency_->currency_symbol??''}}
{{__('message.total sale price')}} : {{number_format($totalPrice,2)}} {{$currency_->currency_symbol??''}} {{number_format($totalQty,0)}} {{number_format($totalWeight ,2)}}
{{__('message.total wages sale')}} : {{number_format($totalWage,2)}} {{$currency_->currency_symbol??''}}
{{__('message.total cost')}} : {{number_format($totalCost,2)}} {{$currency_->currency_symbol??''}}
{{__('message.total original wages')}} : {{number_format($totalOriginalWage,2)}} {{$currency_->currency_symbol??''}}
@if($build_stocks->hasPages())