Skip to content

Commit

Permalink
All done
Browse files Browse the repository at this point in the history
  • Loading branch information
Omkar Rajaram Gaikwad committed Mar 26, 2021
2 parents d454656 + 608e897 commit 88e8fea
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 0 deletions.
156 changes: 156 additions & 0 deletions resources/views/marksheet/PDF/CreatePDF.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="{{asset('css/app.css')}}">
<title>Document</title>

</head>

<body>


{{-- creating header of MarkSheet --}}

<div class="container" id="mainContainer">

<div class="row">

<div class="col-2" >
{{-- <img src="{{$college->src}}" alt="Marksheet Values"> --}}
</div>

<div class="col-10">

<div class="row">
{{-- collegeName Here --}}

</div>

<div class="row">

<div class="col-6">
{{-- address --}}
</div>

<div class="col-6">
{{-- grade with other rewards --}}
</div>

</div>

<div class="row">

<div class="col-4">

{{-- phone number --}}

</div>

<div class="col-4">

{{-- Email --}}

</div>

<div class="col-4">

{{-- Website --}}

</div>

</div>
</div>{{-- end of col-10 --}}

</div> {{-- end of row --}}

{{-- student Details --}}
<div class="row">

<div class="row">
{{-- row for student Name --}}
</div>

<div class="row">

<div class="col-3">
{{-- Roll No --}}
</div>

<div class="col-3">
{{-- Stream --}}
</div>

</div>
</div> {{-- end of student personal info --}}

{{-- Now Subject with Grade --}}

<div class="row">

<table class="table">

<tr>
<th>Subject</th>
<th>Weightage</th>
<th>Passing</th>
<th>Obtained</th>
</tr>

{{-- @foreach ($subject as $subjects) --}}

<tr>
{{-- <td>{{$subject->name}}</td>
<td>{{$subject->weightage}}</td>
<td>{{$subject->Passing}}</td>
<td>{{$subject->Obtained}}</td> --}}
</tr>

{{-- @endforeach --}}

</table>

<div class="divider"></div>

<div class="row justify-content-flex-end">
<div class="col-3">
Total
</div>

<div class="col-3">
{{-- total value --}}
</div>
</div>

<div class="row justify-content-flex-end">
<div class="col-3">
Total in %
</div>

<div class="col-3">
{{-- total marks in % --}}
</div>
</div>

</div> {{-- end of Result Section --}}

<div class="row">
{{-- Marks Obtained --}}
</div> {{-- to show the marks and % with respect to total --}}

<div class="row justify-content-end">

{{-- stamp goes here --}}

</div>

</div>


</body>

</html>
16 changes: 16 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,19 @@
Auth::routes();

Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');

// Route::get('/', function () {

// $dom = new DOMDocument();
// $dom->validateOnParse = true;
// $dom->loadHTML(view('PDF.CreatePDF')->render());
// $dom->saveHTML();
// $dom->preserveWhiteSpace = false;

// $html2pdf = new Html2Pdf();
// $val = $dom->getElementById("mainContainer");
// $html2pdf->writeHTML($val);
// $html2pdf->output('example01.pdf');

// });

0 comments on commit 88e8fea

Please sign in to comment.