@extends('layouts.admin-main') @section('content')
{{-- --}}
{{--
--}} {{-- --}} {{--
--}}
@foreach($build_stocks as $index => $build_stock) @endforeach @if($productCategory) @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->cost, 2) }} {{$currency_->currency_symbol??''}}

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

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

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

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

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

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

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

: {{number_format($build_stock->wages??0 , 2)}} {{$currency_->currency_symbol}}

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

: {{number_format($build_stock->original_wages??0 , 2)}} {{$currency_->currency_symbol}}

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

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

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

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

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

: {{$build_stock->selling_purity??''}}
@endif
@if($build_stock->original_invoice)

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

:{{$build_stock->original_invoice??''}}
@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??''}}
@if($build_stocks->hasPages())
{{ $build_stocks->appends($_GET)->links() }}
@endif
@endsection @section('scripts') @endsection @section('meta') {{ __('message.building stock') }} - {{$settings_->shop_name}} @endsection