@if(count($representative_objects)>0)
@foreach($representative_objects as $representative_object)
{{__('texte.representatives_arr.objects.list.make_order')}}
{{__('texte.representatives_arr.objects.list.promotions')}}
{{__('texte.representatives_arr.objects.list.edit_object')}}
{{__('texte.representatives_arr.objects.list.due_amount')}}: 0.00000 {{__('texte.representatives_arr.objects.list.bgn')}}.
{{__('texte.representatives_arr.objects.list.orders_amount')}}: 0.00000 {{__('texte.representatives_arr.objects.list.bgn')}}.
{{__('texte.representatives_arr.objects.list.due_wrappage')}}: 0.00000 {{__('texte.representatives_arr.objects.list.bgn')}}.
{{__('texte.representatives_arr.objects.list.credit_limit')}}: 0.00000 {{__('texte.representatives_arr.objects.list.bgn')}}.
{{__('texte.representatives_arr.objects.list.overdue_amount')}}: 0.00000 {{__('texte.representatives_arr.objects.list.bgn')}}.
{{__('texte.representatives_arr.objects.list.min_order_amount')}}: 0.00000 {{__('texte.representatives_arr.objects.list.bgn')}}.
{{__('texte.representatives_arr.objects.list.free_delivery_amount')}}: 0.00000 {{__('texte.representatives_arr.objects.list.bgn')}}.
{{__('texte.representatives_arr.objects.list.contragent')}}: {{$representative_object->contragent->company_name ?? $representative_object->contragent->user->name}}
{{__('texte.representatives_arr.objects.list.object')}}: {{$representative_object->user->name}}
{{__('texte.representatives_arr.objects.list.object_type')}}: {{$representative_object->subtype->type->name}}, {{$representative_object->subtype->name}}
{{__('texte.representatives_arr.objects.list.location')}}: {{$representative_object->location->area->name}}, {{$representative_object->location->name}}
{{__('texte.representatives_arr.objects.list.region')}}: {{$representative_object->subregion->region->name}}, {{$representative_object->subregion->name}}
{{__('texte.representatives_arr.objects.list.address')}}: {{$representative_object->delivery_address}}
{{__('texte.representatives_arr.objects.list.email')}}: {{$representative_object->user->email}}
{{__('texte.representatives_arr.objects.list.phone')}}: {{$representative_object->user->mobile}}
{{__('texte.representatives_arr.objects.list.contact_person')}}: {{$representative_object->contact_person}}
{{__('texte.representatives_arr.objects.list.payment')}}: {{$representative_object->payment_type==0 ? __('texte.representatives_arr.objects.list.cash') : __('texte.representatives_arr.objects.list.bank_payment')}}
@foreach ($filters as $filter)
@if ($filter->type == 2 && $filter->options->isNotEmpty())
{{$filter->title}}:
@foreach($filter->options as $option)
{{isset(json_decode($representative_object->filters, true)[$filter->name]) && in_array($option->id, json_decode($representative_object->filters,true)[$filter->name]) ? $option->title.', ' : ''}}
@endforeach
@endif
@if ($filter->type == 1 && $filter->options->isNotEmpty())
{{$filter->title}}:
@foreach ($filter->options as $option)
@if ($option->active)
{{(isset(json_decode($representative_object->filters,true)[$filter->name]) && $option->id == json_decode($representative_object->filters, true)[$filter->name]) ? $option->title : ''}}
@endif
@endforeach
@endif
@if ($filter->type == 0)
{{$filter->title}}:
{{json_decode($representative_object->filters, true)[$filter->name] ?? ''}}
@endif
@endforeach
@endforeach
@else