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

{{$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}}
{{__('message.date')}} : {{ \Carbon\Carbon::parse($date)->format('d-m-Y H:i') }}

{{__('message.stock balance report')}}

@foreach ($build_stocks as $index => $build_stock) is_active) class="inactive" @endif> @if($build_stock->fixed_price) @else @endif
# {{ __('message.original invoice') }} {{ __('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.diamond size') }} {{ __('message.sale wages') }} {{ __('message.sales price') }} {{ __('message.image') }} {{__('message.supplier')}} {{__('message.supplier rate')}} {{ __('message.created date') }}
{{ $index + 1 }} {{$build_stock->original_invoice??''}} {{$build_stock->part_number}} {{$build_stock->productCategory->name??''}} {{ $build_stock->name ??''}} {{ $build_stock->qty??0 }} @if($build_stock->productCategory->fixed_price == true || $build_stock->fixed_price == true) {{ number_format($build_stock->cost($build_stock->weight), 2) }} {{$currency_->currency_symbol}} @else {{ number_format($build_stock->cost($build_stock->weight) - $build_stock->original_wages, 2) }} {{$currency_->currency_symbol}} @endif {{number_format($build_stock->original_wages??0 , 2)}} {{$currency_->currency_symbol}} {{ number_format($build_stock->qty * $build_stock->cost($build_stock->weight), 2) }} {{$currency_->currency_symbol}} {{ number_format($build_stock->weight ,2) }} {{number_format($build_stock->goldWeight() ,2)}} {!!$build_stock->diamond_size!!} {{number_format($build_stock->wages??0 , 2)}} {{$currency_->currency_symbol}} {{number_format($build_stock->price,2)}} {{$currency_->currency_symbol}} {{number_format($build_stock->sellingPrice(),2)}} {{$currency_->currency_symbol}}
@if($build_stock->image) @endif
{{$build_stock->supplier->name??''}} {{number_format($build_stock->supplier_rate??0 , 0)}} {{ $build_stock->created_at->format('d/m/Y H:i') }}