@extends('../layout/' . $layout) @section('subhead') Atarud MIS - Book Report @endsection @section('subcontent')

Book Report

Report Filters

Report Content

@if(isset($fromDate) && isset($toDate))
{{-- --}}
@endif
@if(isset($soldBooks))

Sold Books

@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
@endsection @section('script') @endsection