@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")
{{__("Sales Of Product")}}
{{__("Dashboard")}}
{{__("Sales Of Product")}}
@endsection @section("content") @include("includes.dialog") @include("admin.report.parts.filter", ["url" => route("admin.report.sales_by_product")])
@foreach($products as $product) @endforeach
{{__("Name")}}
{{__("Image")}}
{{__("Price")}}
{{__("Quantity Per Branch")}}
{{__("quantity-of-sales")}}
{{__("Total")}}
{{$product['name']}}
{{$product['price']}} {{__("JD")}}
{{__("quantity")}}
×
@foreach($product['branches'] as $branch) @endforeach
{{__("branch name")}}
{{__("quantity")}}
{{$branch['branch']->name}}
{{array_sum($branch['quantity'])}}
{{$product['quantity']}}
{{$product['total']}} {{__("JD")}}
{{__("Total")}}
{{ $total }} {{__("JD")}}
@endsection