@extends('layouts.master')

@section('title')
	Payment Success
@endsection

@section('meta-desc')
	<meta name="description" content="{{$masterName}} - {{$masterDesc}}">
@endsection

@section('content')
  <main id="mainContent" class="container-fluid">
    <section class="row checkout">
			<div class="col-xs-12 col-sm-6 col-sm-offset-3">
				<div class="card text-center">
					<div class="card-content after-checkout alert-success">
						<header>
							<span class="jumbo-icon"><i class="fa fa-check-circle-o" aria-hidden="true"></i></span>
							@if($payment_method == "manual")
								<h1>@lang('frontend.order_complete')</h1>
							@else
								<h1>@lang('frontend.payment_success')</h1>
							@endif
						</header>
						@if($payment_method == "manual")
							<p>
								@lang('frontend.thanks_order')
							</p>
						@else
							<p>
								@lang('frontend.thanks_purchase')
							</p>
						@endif

						@if($payment_method == "manual")
							<div class="row">
							<div class="col-xs-12 col-sm-8 col-sm-offset-2 table-responsive">
								<table class="table table-hover">
									<tbody>
										@foreach ($bank_list as $key => $value)
											<tr>
												<td width="25%"><img class="img img-responsive" src="{{asset($storage_url.'img/bank/'.$value->bank_list->bank_image)}}"></td>
												<td width="75%" class="text-left">
													@lang('frontend.account_number') : <strong>{{ $value->account_number }}</strong><br>
													@lang('frontend.account_name') : <strong>{{ $value->account_name }}</strong>
												</td>
											</tr>
										@endforeach
									</tbody>
								</table>
							</div>
						</div>
						@endif
						<hr>
						<aside>
							<a href="{{url('/')}}" class="btn btn-default">@lang('frontend.back_to_home')</a>
						</aside>
					</div>
				</div>
			</div>
		</section>
  </main>
@endsection
