@foreach($animal->details as $animalDetail) @endforeach @foreach($animal->details as $animalDetail) @php $quantity = $data[$animalDetail->id]->quantity??0 ; $price = $data[$animalDetail->id]->price??0 ; $discount = $data[$animalDetail->id]->discount??0 ; $total = $price - $discount ; @endphp @endforeach

{{$category->name .' '.$animal->name}}

وزن {{$animalDetail->weight}} كم
العدد
الاجمالى
اجمالى الخصم
الاجمالى بعد الخصم
{{$quantity}}
{{number_format($price)}}
{{number_format($discount)}}
{{number_format($total)}}