+ + Reports +
++ Report from {{ Str::substr($startDate, 0, 10) }} to {{ Str::substr($endDate, 0, 10) }} +
+Id | +Menus | +Quantity | +Tables | +Servers | +Total | +Payment type | +Payment status | +
---|---|---|---|---|---|---|---|
+ {{ $sale->id }} + | +
+ @foreach ($sale->menus()->where("sale_id",$sale->id)->get() as $menu)
+
+
+ @endforeach
+
+
+
+
+ {{ $menu->title }}+{{ $menu->price }} DH+ |
+
+ @foreach ($sale->menus()->where("sale_id",$sale->id)->get() as $menu)
+ {{ $menu->pivot->quantity }}+ @endforeach + |
+
+ @foreach ($sale->tables()->where("sale_id", $sale->id)->get() as $table)
+
+
+ @endforeach
+
+
+ {{ $table->name }}
+
+ |
+ + {{ $sale->servant->name }} + | ++ {{ $sale->total_price }} + | ++ {{ $sale->payment_type === "cash"? "Cash" : "Credit Card" }} + | ++ {{ $sale->payment_status }} + | +
+ Total : {{ $total }} DH +
+ + @endisset +