@extends('layouts.app') @section('stitle', __('messages.return_reports')) @section('title', __('messages.return_reports')) @section('content')
@include('reports.reports_void_menu')
@if($data->isNotEmpty())
{{-- --}} {{-- --}} @php $total_qty = 0; @endphp @foreach($data as $order_row) @php $total_qty += $order_row->orderProduct->sum('qty'); @endphp {{-- --}} {{-- --}} @endforeach
{{__('messages.product')}} {{__('messages.Branch')}} {{__('messages.branch_reference')}} {{__('messages.TYPE')}} {{__('messages.user')}} {{__('messages.order_reference')}} {{__('messages.time')}} {{__('messages.quantity')}} {{__('messages.amount')}} {{__('messages.reason')}}
{{$order_row->product->name}} {{$order_row->branch->name}} {{$order_row->branch->reference}} {{$order_row->status}} {{$order_row->user->name}} {{$order_row->reference}} {{$order_row->device_created_at}} {{$order_row->orderProduct->sum('qty') }} {{$order_row->total}} {{$returnData->order_void_reason}}
Totals {{ $total_qty }} {{ $data->sum('total') }}
@else
No Data Found! Adjust the date & filters in the report to get more specific results.
@endif
@endsection @push('my_scripts') @endpush