@extends('layouts.app') @section('link') @endsection @section('style') @endsection @section('content')
@include('shared.messages')

{{isset($contragent) ? __('texte.balances_arr.wrappage_balance.contragent').' '.$contragent->user->name : __('texte.balances_arr.wrappage_balance.object').' '.$object->user->name}}
@if(count($wrappages->where('quantity','!=',0))>0) id) : route('balances.print_wrappage_balance',$object->id) }}'>{{__('texte.balances_arr.wrappage_balance.print')}} @endif

{{ csrf_field() }} @if(isset($object)) @endif @foreach ($wrappages as $index=>$wrappage) @if($index==0 || ($index>0 && $wrappage->category_id!=$wrappages[$index-1]->category_id)) @endif @endforeach
{{__('texte.balances_arr.wrappage_balance.product')}} {{__('texte.balances_arr.wrappage_balance.due_count')}} {{__('texte.balances_arr.wrappage_balance.single_price')}} {{__('texte.balances_arr.wrappage_balance.due_bgn')}} {{__('texte.balances_arr.wrappage_balance.returned_quantity_count')}} {{__('texte.balances_arr.wrappage_balance.returned_quantity_bgn')}} {{__('texte.balances_arr.wrappage_balance.paid_quantity')}} {{__('texte.balances_arr.wrappage_balance.amount_paid_quantity')}} {{__('texte.balances_arr.wrappage_balance.remaining_count')}} {{__('texte.balances_arr.wrappage_balance.remaining_bgn')}}

{{$wrappages[$index]->category->name ?? ""}}

{{$wrappage->name}} {{$wrappage->quantity}} {{$wrappage->price}} {{number_format($wrappage->quantity*$wrappage->price,5)}} 0 0 {{$wrappage->quantity}} {{number_format($wrappage->quantity*$wrappage->price,5,'.','')}}
{{__('texte.balances_arr.wrappage_balance.total_returned')}} {{__('texte.balances_arr.wrappage_balance.total_paid')}} {{__('texte.balances_arr.wrappage_balance.balance')}} 0
@permission('balances-route-transform') @if(isset($object))@endif @endpermission
@endsection