@php ini_set('memory_limit', '44M'); @endphp

Book Report

@if(isset($soldBooks))

Book Report: {{$fromDate}} - {{$toDate}}

@php $count = 0; @endphp @if(count($soldBooks) >0) @foreach($soldBooks as $row) @php $student = App\Models\Student::where('id', $row->student_id)->first(); $book = App\Models\Book::where('id', $row->book_id)->first(); @endphp @endforeach
# Name F/Name Book Name Date Quantity Amount Profit
{{++$loop->index}} {{$student != null ? $student->name : ''}} {{$student != null ? $student->father_name : ''}} {{$book != null ? $book->name : ''}} {{$row->sold_date}} {{$row->quantity}} {{$row->amount}} {{$row->profit}}
Sold Books {{$data['quantity']}}
Amount {{ $data['amount']}}
Profit {{ $data['profit'] }}
@endif @endif