Report Content
@if(isset($fromDate) && isset($toDate))
@endif
@if(isset($soldBooks))
Sold Books
# |
Name |
F/Name |
Book Name |
Date |
Quantity |
Amount |
Profit |
|
@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
{{++$loop->index}} |
{{$student != null ? $student->name : ''}} |
{{$student != null ? $student->father_name : ''}} |
{{$book != null ? $book->name : ''}} |
{{$row->sold_date}} |
{{$row->quantity}} |
{{$row->amount}} |
{{$row->profit}} |
@endforeach
Sold Books |
{{$data['quantity']}} |
Amount |
{{ $data['amount']}} |
Profit |
{{ $data['profit'] }} |
@endif