1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-23 18:01:35 +02:00
invoiceninja/app/views/payments/payment.blade.php

197 lines
5.7 KiB
PHP
Raw Normal View History

2014-05-13 23:53:41 +02:00
@extends('public.header')
2014-02-02 19:14:56 +01:00
@section('content')
2014-05-13 23:53:41 +02:00
<style type="text/css">
2014-02-02 19:14:56 +01:00
div > label.control-label
{
2014-05-13 16:05:26 +02:00
font-weight: bold !important;
2014-05-13 21:20:54 +02:00
/* text-transform:uppercase; */
2014-05-13 16:05:26 +02:00
}
2014-05-13 23:53:41 +02:00
</style>
2014-07-15 22:36:40 +02:00
{{ Former::vertical_open($url)->rules(array(
2014-05-20 08:59:33 +02:00
'first_name' => 'required',
'last_name' => 'required',
'card_number' => 'required',
'expiration_month' => 'required',
'expiration_year' => 'required',
'cvv' => 'required',
'address1' => 'required',
'city' => 'required',
'state' => 'required',
'postal_code' => 'required',
'country' => 'required',
'phone' => 'required',
2014-07-15 22:36:40 +02:00
'email' => 'required|email'
2014-05-13 23:53:41 +02:00
)) }}
2014-07-15 22:36:40 +02:00
@if ($client)
{{ Former::populate($client) }}
{{ Former::populateField('first_name', $contact->first_name) }}
{{ Former::populateField('last_name', $contact->last_name) }}
@endif
2014-05-13 23:53:41 +02:00
<section class="hero background hero-secure center" data-speed="2" data-type="background">
<div class="container">
<div class="row">
<h1>Secure Payment</h1>
<p class="thin"><img src="{{ asset('images/icon-secure-pay.png') }}">256-BiT Encryption</p>
<!-- <img src="{{ asset('images/providers.png') }}"> -->
</div>
</div>
</section>
<section class="secure">
<div class="container">
2014-07-15 22:36:40 +02:00
@if (isset($paymentTitle))
<h2>{{ $paymentTitle }}<br/>
@if (isset($paymentSubtitle))
<small>{{ $paymentSubtitle }}</small>
@endif
</h2>&nbsp;<p/>
@endif
2014-05-13 23:53:41 +02:00
<div id="secure-form" class="row">
<div class="col-md-7 info">
2014-07-15 22:36:40 +02:00
<div class="row">
@if (isset($paymentTitle))
<div class="form-group col-md-4">
{{ Former::text('first_name') }}
</div>
<div class="form-group col-md-4">
{{ Former::text('last_name') }}
</div>
<div class="form-group col-md-4">
{{ Former::text('email') }}
</div>
@else
<div class="form-group col-md-6">
{{ Former::text('first_name') }}
</div>
<div class="form-group col-md-6">
{{ Former::text('last_name') }}
</div>
@endif
2014-05-20 08:59:33 +02:00
</div>
2014-02-02 19:14:56 +01:00
2014-05-20 08:59:33 +02:00
<div class="row">
2014-07-15 22:36:40 +02:00
<div class="form-group col-md-8">
2014-05-20 08:59:33 +02:00
{{ Former::text('address1')->label('Street') }}
2014-05-13 23:53:41 +02:00
</div>
2014-07-15 22:36:40 +02:00
<div class="form-group col-md-4">
2014-05-20 08:59:33 +02:00
{{ Former::text('address2')->label('Apt/Suite') }}
</div>
2014-07-15 22:36:40 +02:00
</div>
2014-05-13 23:53:41 +02:00
2014-07-15 22:36:40 +02:00
<div class="row">
<div class="form-group col-md-4">
2014-05-20 08:59:33 +02:00
{{ Former::text('city') }}
</div>
2014-07-15 22:36:40 +02:00
<div class="form-group col-md-4">
2014-05-20 08:59:33 +02:00
{{ Former::text('state')->label('State/Province') }}
</div>
2014-07-15 22:36:40 +02:00
<div class="form-group col-md-4">
2014-05-20 08:59:33 +02:00
{{ Former::text('postal_code') }}
2014-05-13 23:53:41 +02:00
</div>
2014-05-13 16:05:26 +02:00
</div>
2014-05-20 08:59:33 +02:00
</div>
2014-05-13 23:53:41 +02:00
2014-05-20 08:59:33 +02:00
@if(strtolower($gateway->name) == 'beanstream')
<div class="row">
<div class="form-group col-md-4">
{{ Former::text('phone') }}
</div>
<div class="form-group col-md-4">
{{ Former::text('email') }}
</div>
<div class="form-group col-md-4">
{{ Former::select('country')->addOption('','')->label('Country')
->fromQuery($countries, 'name', 'iso_3166_2') }}
</div>
</div>
@endif
2014-05-13 23:53:41 +02:00
2014-05-20 08:59:33 +02:00
<div class="col-md-5">
<div class="card">
<div class="row">
<div class="form-group col-md-12">
{{ Former::text('card_number') }}
<!-- <span class="glyphicon glyphicon-lock"></span> -->
2014-05-13 23:53:41 +02:00
</div>
</div>
2014-05-20 08:59:33 +02:00
<div class="row">
<div class="form-group col-md-6">
{{ Former::select('expiration_month')->addOption('','')
->addOption('01 - January', '1')
->addOption('02 - February', '2')
->addOption('03 - March', '3')
->addOption('04 - April', '4')
->addOption('05 - May', '5')
->addOption('06 - June', '6')
->addOption('07 - July', '7')
->addOption('08 - August', '8')
->addOption('09 - September', '9')
->addOption('10 - October', '10')
->addOption('11 - November', '11')
->addOption('12 - December', '12')
}}
2014-05-13 23:53:41 +02:00
2014-05-20 08:59:33 +02:00
</div>
<div class="form-group col-md-6">
{{ Former::select('expiration_year')->addOption('','')
->addOption('2014', '2014')
->addOption('2015', '2015')
->addOption('2016', '2016')
->addOption('2017', '2017')
->addOption('2018', '2018')
->addOption('2019', '2019')
->addOption('2020', '2020')
}}
2014-05-13 23:53:41 +02:00
2014-05-13 16:05:26 +02:00
</div>
</div>
2014-05-20 08:59:33 +02:00
2014-05-13 16:05:26 +02:00
<div class="row">
2014-05-20 08:59:33 +02:00
<div class="form-group col-md-6">
{{ Former::text('cvv') }}
</div>
<div class="col-md-6">
<!-- <p><span class="glyphicon glyphicon-credit-card" style="margin-right: 10px;"></span><a href="#">Where Do I find CVV?</a></p> -->
2014-05-13 16:05:26 +02:00
</div>
2014-05-20 08:59:33 +02:00
</div>
2014-07-17 22:44:34 +02:00
@if(isset($acceptedCreditCardTypes))
<div class="row">
<div class="form-group col-md-12">
@foreach ($acceptedCreditCardTypes as $card)
<img src="{{ $card['source'] }}" alt="{{ $card['alt'] }}" style="width: 70px; display: inline; margin-right: 6px;"/>
@endforeach
</div>
</div>
@endif
2014-05-13 23:53:41 +02:00
</div>
2014-05-20 08:59:33 +02:00
</div>
</div>
<div class="row">
<div class="col-md-12">
2014-07-15 22:36:40 +02:00
{{ Button::block_primary_submit_lg(strtoupper(trans('texts.pay_now')) . ' - ' . Utils::formatMoney($amount, $currencyId) ) }}
2014-05-13 23:53:41 +02:00
</div>
</div>
2014-05-20 08:59:33 +02:00
</div>
</div>
2014-05-13 16:05:26 +02:00
2014-04-02 15:10:00 +02:00
2014-05-13 23:53:41 +02:00
</section>
2014-02-02 19:14:56 +01:00
2014-05-13 23:53:41 +02:00
{{ Former::close() }}
2014-02-02 19:14:56 +01:00
@stop