@extends('layouts.admin-main') @section('content')
@if($gold->name == 'មាស' || $gold->name == 'Gold' || $gold->name == 'ทอง') @else @endif @if($gold->fixed_price == true) @else @endif @foreach ($products as $index => $product) @if($product->fixed_price) @else @endif @if($gold->name == 'មាស' || $gold->name == 'Gold' || $gold->name == 'ทอง') @else @endif @if($gold->fixed_price == true) @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
@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

{{__('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