You are on page 1of 4

<div class="tab-content p-3">

<div class="tab-pane " id="tuesday">


@php
$marti = $masiv[1];
@endphp
<div class="row">
<h5 class="card-title">Tuesday program</h5>
<div class="table-responsive">

<form method="POST" action="">


@csrf
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Available</th>
<th scope="col">Hour</th>
<th scope="col">Student Email</th>
<th scope="col">Student Name</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
@for ($i = 2; $i<=158; $i+=5)
<tr>
<th><input type="checkbox" id="{{$marti[$i-2]}}"
name="{{$marti[$i-2]}}"
@php if($marti[$i-1]){echo "checked"; } @endphp></th>
<td>{{$marti[$i]}}</td>
<td>{{$marti[$i+1]}}</td>
<td>{{$marti[$i+2]}}</td>
<td><a href =""><span class="badge badge-danger"><i class="fa
fa-eye"></i> Delete Student</span></a></td>
</tr>
@endfor
</tbody>
</table>
<button type="submit" class="btn btn-light px-5"><i class="zmdi
zmdi-account-add"></i> Save program </button>
</form>

</div>
</div><!--End Row-->

</div>
</div>

<div class="tab-content p-3">


<div class="tab-pane " id="wednesday">
@php
$miercuri = $masiv[2];
@endphp
<div class="row">
<h5 class="card-title">Wednesday program</h5>
<div class="table-responsive">

<form method="POST" action="">


@csrf
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Available</th>
<th scope="col">Hour</th>
<th scope="col">Student Email</th>
<th scope="col">Student Name</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
@for ($i = 2; $i<=158; $i+=5)
<tr>
<th><input type="checkbox" id="{{$miercuri[$i-2]}}"
name="{{$miercuri[$i-2]}}"
@php if($miercuri[$i-1]){echo "checked"; } @endphp></th>
<td>{{$miercuri[$i]}}</td>
<td>{{$miercuri[$i+1]}}</td>
<td>{{$miercuri[$i+2]}}</td>
<td><a href =""><span class="badge badge-danger"><i class="fa
fa-eye"></i> Delete Student</span></a></td>
</tr>
@endfor
</tbody>
</table>
<button type="submit" class="btn btn-light px-5"><i class="zmdi
zmdi-account-add"></i> Save program </button>
</form>

</div>
</div><!--End Row-->

</div>
</div>

<div class="tab-content p-3">


<div class="tab-pane " id="thursday">
@php
$joi = $masiv[3];
@endphp
<div class="row">
<h5 class="card-title">Monday program</h5>
<div class="table-responsive">

<form method="POST" action="">


@csrf
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Available</th>
<th scope="col">Hour</th>
<th scope="col">Student Email</th>
<th scope="col">Student Name</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
@for ($i = 2; $i<=158; $i+=5)
<tr>
<th><input type="checkbox" id="{{$joi[$i-2]}}"
name="{{$joi[$i-2]}}"
@php if($joi[$i-1]){echo "checked"; } @endphp></th>
<td>{{$joi[$i]}}</td>
<td>{{$joi[$i+1]}}</td>
<td>{{$joi[$i+2]}}</td>
<td><a href =""><span class="badge badge-danger"><i class="fa
fa-eye"></i> Delete Student</span></a></td>
</tr>
@endfor
</tbody>
</table>
<button type="submit" class="btn btn-light px-5"><i class="zmdi
zmdi-account-add"></i> Save program </button>
</form>

</div>
</div><!--End Row-->

</div>
</div>

<div class="card-content">
<div class="card-body">
<h5 class="text-white mb-0">@if(!empty($personal->demo_lessons))
{{ $personal->demo_lessons }}
@else
0
@endif <span class="float-right">
<span class="float-right">
<button class="btn btn-light px-5" data-toggle="modal" data-
target="#buy_demo">
<i class="fa fa-shopping-cart"></i>Buy more
</h5></button> </span>
<p class="mb-0 text-white small-font">Available demo lessons (30
minutes)</p>
</div>
</div>
</div>

<!-- Buy full lesson-->


<div class="modal fade" id="buy_demo" tabindex="-1" role="dialog" aria-
labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-new">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Buy DEMO LESSONS</h5>
<button type="button" class="close" data-dismiss="modal" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="modal-body">
<div class="form-group">

<form action="{{route('buy-demo')}}" method="post">


@csrf
<div class="form-group">
<label for="demo">30 minutes cost 440 RUB</label>
<input type="number" min="1" max="10" class="form-control" id="demo"
name="n_demo" placeholder="Enter number of lessons">
</div>
</div>
<div class="form-group">

</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Buy Now</button>
</form>
<button type="button" class="btn btn-secondary" data-
dismiss="modal">Close</button>
</div>

</div>
</div>
</div>
</div>

You might also like