@extends('layouts.admin-main') @section('content')
@if($category->children->count('id') >= 1)
@if($category->name == 'ផ្លាកទីន' || $category->name == 'Platinum' || $category->name == 'แพลตตินัม')
@endif @endif
{{ __('message.print') }} {{__('message.import')}} {{-- --}} {{-- --}} {{-- {{__('message.upgrade')}}--}} {{-- --}} {{ __('message.export excel') }} {{ __('message.excel sample') }}
@csrf
{{--
--}} {{-- @csrf--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- {{ __('message.building stock') }}--}} {{-- --}} {{-- --}}
@if($category->fixed_price) @endif @if($category->name == 'មាស' || $category->name == 'Gold' || $category->name == 'ทอง') @else @endif @if($category->fixed_price == true) @else @endif @foreach ($products as $index => $product) @if($category->fixed_price) @endif @if($product->fixed_price) @else @endif @if($category->name == 'មាស' || $category->name == 'Gold' || $category->name == 'ทอง') @else @endif @if($category->fixed_price == true) @else @endif @endforeach @if(!$category->fixed_price) {{-- @if($category->name=='Platinum'|| $category->name=='ផ្លាកទីន'||$category->name=='แพลตตินัม' || $category->name == 'ផលិតផលបន្ថែម')--}} @if($category->fixed_price == true || $category->name == 'មាស') @else @endif @else @endif
#{{__('message.gia number')}}{{ __('message.part number') }} {{ __('message.product category') }} {{ __('message.name') }} {{ __('message.price') }} {{__('message.fixed price')}} {{ __('message.qty') }}{{ __('message.weight') }}{{ __('message.gold weight') }}
@if($product->image) @else @endif

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

: {{ number_format($product->cost(), 2) }} {{$currency_->currency_symbol??''}}

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

: {{ number_format($product->sellingCost(), 2) }} {{$currency_->currency_symbol??''}}
@if($product->selling_wagesInWeight()??0)

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

: {{number_format($product->selling_wagesInWeight()??0 , 2)}} {{$currency_->currency_symbol}}
@endif @if($product->wages_in_weight)

{{__('message.wages')}} (គិតជាលី)

: {{number_format($product->wages_in_weight??0 , 2)}}
@endif

{{__('message.original wages')}}

: {{number_format($product->cost_wagesInWeight()??0 , 2)}} {{$currency_->currency_symbol}}
@if($product->purity_upgrade_to)

{{__('message.purity upgrade to')}}

: {{$product->purity_upgrade_to??''}}
@endif @if($product->selling_purity)

{{__('message.selling purity')}}

: {{$product->selling_purity??''}}
@endif {{--
--}} {{--
--}} {{--

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

--}} {{--
--}} {{--
:{{number_format($product->weight , 2)}}
--}} {{--
--}}
@if($product->original_invoice)

{{__('message.original invoice')}}

: {{$product->original_invoice??''}}
@endif

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

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

: @if ($product->is_active) @else @endif
@if($product->old_code)

{{__('message.old code')}}

: {{$product->old_code??''}}
@endif @if($product->diamond_size)

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

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

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

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

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

:{{number_format($product->supplier_rate??0 , 2)}} {{$currency_->currency_symbol}}

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

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

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

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

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

@foreach ($product->productAttributes 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($product->description)
{!!$product->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 of sale')}} : {{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 of sale')}} : {{number_format($totalCost,2)}} {{$currency_->currency_symbol??''}}
{{__('message.total original wages')}} : {{number_format($totalOriginalWage,2)}} {{$currency_->currency_symbol??''}}
@if($products->hasPages())
{{ $products->appends($_GET)->links() }}
@endif