@extends('layouts.admin-main') @section('content')
Back
{{--
--}} {{--
--}} {{-- GRN Number--}} {{--
--}} {{--
--}}

{{$settings_->shop_name}}

{{__('message.cashier')}} : {{Auth::user()->name}}
{{__('message.invoice date')}} : {{now()->toDateTimeString()}}
{{__('message.location')}} : {{$settings_->address}}
{{__('message.phone number')}} : {{$settings_->phone}}

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

@if($for_sale == 1) @endif @foreach ($products as $index => $product) is_active) class="inactive" @endif> @if($for_sale == 1) @endif @if($product->fixed_price) @else @endif @endforeach
# {{__('message.gia number')}} {{__('message.supplier rate')}} {{__('message.supplier')}} {{ __('message.part number') }} {{ __('message.product category') }} {{ __('message.name') }}{{ __('message.qty') }}{{ __('message.cost') }} {{ __('message.price') }} {{ __('message.weight') }} {{ __('message.gold weight') }} {{ __('message.diamond size') }} {{ __('message.wages') }} {{ __('message.original wages') }} {{ __('message.description') }} {{ __('message.image') }} {{ __('message.user') }} {{ __('message.created date') }}
{{ $index + 1 }} {{ $product->gia_number }} {{ number_format($product->supplier_rate??0 ,2) }} {{$currency_->currency_symbol}} {{ $product->supplier->name??'' }} @if($product->for_sale) @endif {{$product->part_number}} {{$product->productCategory->name??''}} {{ $product->name??'' }} {{ $product->qty??0 }} {{ number_format($product->sellingCost(), 2) }} {{$currency_->currency_symbol}} {{number_format($product->price,2)}} {{$currency_->currency_symbol}} {{number_format($product->sellingPrice(),2)}} {{$currency_->currency_symbol}} {{ number_format($product->weight , 2) }} {{number_format($product->goldWeight() , 2)}} {!!$product->diamond_size!!} @if($product->productCategory->fixed_price) {{number_format($product->selling_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} @else @if($product->fixed_price) {{number_format($product->selling_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} @else {{number_format($product->wages_in_weight , 2)}} @endif @endif @if($product->productCategory->fixed_price) {{number_format($product->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} @else @if($product->fixed_price) {{number_format($product->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}} @else {{number_format($product->original_wages_in_weight , 2)}} @endif @endif {!! $product->description !!} {{-- {{$product->image}}--}}
@if($product->image) @else {{-- {{ __('message.no image') }}--}} @endif {{-- image--}}
{{$product->user->name ?? '-'}} {{ $product->created_at->format('d/m/Y H:i') }}

{{__('message.prepare by')}} :

{{__('message.confirm by')}} :
Print
@endsection @section('scripts') @endsection