File: //var/www/html/punjabcabs/resources/views/provider/payment/upcoming.blade.php
@extends('provider.layout.app')
@section('content')
<div class="pro-dashboard-head">
<div class="container">
<a href="{{url('provider/earnings')}}" class="pro-head-link">@lang('driver.payment_statements')</a>
<a href="{{url('provider/upcoming')}}" class="pro-head-link active">@lang('driver.upcoming')</a>
<!-- <a href="new-provider-patner-invoices.html" class="pro-head-link">Payment Invoices</a>
<a href="new-provider-banking.html" class="pro-head-link">Banking</a> -->
</div>
</div>
<div class="pro-dashboard-content">
<!-- Earning Content -->
<div class="earning-content gray-bg">
<div class="container">
<!-- Earning section -->
<div class="earning-section earn-main-sec pad20">
<!-- Earning section head -->
<div class="earning-section-head row no-margin">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 no-left-padding">
<h3 class="earning-section-tit">@lang('driver.upcoming_trips')</h3>
</div>
</div>
<!-- End of earning section head -->
<!-- Earning-section content -->
<div class="tab-content list-content">
<div class="list-view pad30 ">
<table class="earning-table table table-responsive">
<thead>
<tr>
<th>@lang('driver.pickup_time')</th>
<th>@lang('driver.vehicle')</th>
<th>@lang('driver.pickup_address')</th>
<th>@lang('driver.status')</th>
<th>@lang('driver.action')</th>
</tr>
</thead>
<tbody>
<?php $fully_sum = 0; ?>
@foreach($fully as $each)
<tr>
<td>{{date('Y D, M d - H:i A',strtotime($each->schedule_at))}}</td>
<td>
@if($each->service_type)
{{$each->service_type->name}}
@endif
</td>
<td>
{{$each->s_address}}
</td>
<td>{{$each->status}}</td>
<td>
<a href="{{route('provider.cancel')}}?id={{$each->id}}" style="margin-top: 0px;" class="full-primary-btn fare-btn">Cancel</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<!-- End of earning section -->
</div>
</div>
<!-- Endd of earning content -->
</div>
</div>
@endsection
@section('scripts')
<script type="text/javascript">
document.getElementById('set_fully_sum').textContent = "{{currency($fully_sum)}}";
</script>
@endsection