@extends('layouts.master') @section('page_title', 'Billing') @section('content')
{{ Form::page_header("Billing", "business") }}
@if(isset($account_not_found)) {{ Form::label_title("Couldn't find account") }} @else {{ Form::row_label_inline('Account Balance', isset($account_balance) ? \App\Helpers\Format_Helper::format_currency($account_balance/100) : '', null, 3, 9) }} {{ Form::row_label_inline('Last Payment', isset($last_payment) ? \App\Helpers\Format_Helper::format_currency($last_payment->total_in_cents/100) . ' on ' . \Carbon\Carbon::instance($last_payment->created_at)->format('m/d/Y') : '', null, 3, 9) }} {{ Form::separator_row('grey-divider thin-divider') }} {{ Form::label_title('Billing Info') }} @if(isset($billing_info)) {{ Form::row_label_inline('First Name', $billing_info->first_name, null, 3, 9) }} {{ Form::row_label_inline('Last Name', $billing_info->last_name, null, 3, 9) }} {{ Form::row_label_inline('Address', $billing_info->address1, null, 3, 9) }} {{ Form::row_label_inline('City', $billing_info->city, null, 3, 9) }} {{ Form::row_label_inline('State', $billing_info->state, null, 3, 9) }} {{ Form::row_label_inline('Zip Code', $billing_info->zip, null, 3, 9) }} {{ Form::row_label_inline('Card Type', $billing_info->card_type, null, 3, 9) }} {{ Form::row_label_inline('Expires', $billing_info->month . '/' . $billing_info->year, null, 3, 9) }} {{ Form::row_label_inline('Last Four', $billing_info->last_four, null, 3, 9) }} @else {{ Form::label_title("No Billing Info on File", \App\Helpers\FormComponentHelper::SIZE_LARGE) }} @endif {{-- {{ Form::button_link('Update Billing Info', $billing_url) }}--}} {{ Form::label_grey('Billing has changed to a new provider and will be available in fuse+. In the mean time please reach out to Nancy Cochran for billing changes.') }} {{ Form::separator_row('grey-divider thin-divider') }} {{ Form::label_title('Monthly Fees') }} {{ Form::row_label_inline('Business Package', $business->business_package_label, null, 3, 9) }} @if(isset($has_subscription)) @foreach($subscriptions as $subscription) {{ Form::row_label_inline('Recurly Plan Name', $subscription->plan->name, null, 3, 9) }} {{ Form::row_label_inline('State', $subscription->state, null, 3, 9) }} {{ Form::row_label_inline('Amount', \App\Helpers\Format_Helper::format_currency($subscription->unit_amount_in_cents/100), null, 3, 9) }} {{ Form::row_label_inline('Activated At', \Carbon\Carbon::instance($subscription->activated_at)->format('m/d/Y'), null, 3, 9) }} {{ Form::row_label_inline('Current Period Started', \Carbon\Carbon::instance($subscription->current_period_started_at)->format('m/d/Y'), null, 3, 9) }} {{ Form::row_label_inline('Current Period Ends', \Carbon\Carbon::instance($subscription->current_period_ends_at)->format('m/d/Y'), null, 3, 9) }} @if($subscription->pending_subscription) {{ Form::label_title('Subscription Changes At End Of Cycle') }} {{ Form::row_label_inline('New Plan', $subscription->pending_subscription->plan->name, null, 3, 9) }} {{ Form::row_label_inline('Amount', \App\Helpers\Format_Helper::format_currency($subscription->pending_subscription->unit_amount_in_cents/100), null, 3, 9) }} @endif @php $date = \Carbon\Carbon::instance($subscription->current_period_ends_at)->format('m/d/Y'); @endphp @if ($business->can_cancel_subscription($subscription->state) && $loop->first) {{-- {{ Form::button_ex('Update Subscription', "show_update_popup('{$subscription->uuid}', {$business->business});", 'update-subscription-button') }}--}} {{-- {{ Form::button_ex('Cancel Services', "cancel_subscription_modal('{$subscription->uuid}', '{$date}', {$business->business}, '{$subscription->state}')") }}--}} {{-- {{ Form::button_ex('Change Log', "show_change_log()", 'change-log-button') }}--}} {{-- {{ Form::separator_row('grey-divider thin-divider') }}--}} {{ Form::label_grey('Billing has changed to a new provider and will be available in fuse+. In the mean time please reach out to Nancy Cochran for billing changes.') }} @elseif (\App\Providers\AuthServiceProvider::user_has_permission(\App\Providers\AuthServiceProvider::UPDATE_BILLING) && $subscription->state != 'canceled' && !$loop->first) {{ Form::separator_row('grey-divider thin-divider') }} @else {{ Form::button_ex('Change Log', "show_change_log()", 'change-log-button') }} {{ Form::separator_row('grey-divider thin-divider') }} @endif @endforeach @else {{ Form::label_title("No Subscription on File", \App\Helpers\FormComponentHelper::SIZE_LARGE) }} {{ Form::button_ex('Change Log', "show_change_log()", 'change-log-button') }} {{ Form::separator_row('grey-divider thin-divider') }} @endif {{ Form::label_title('Invoices') }} @include('search._search_grid_table') @include('shared.modals._basic_modal', ['title' => 'Change Log', 'modal_id' => 'change-log-dialog', 'value' => $business->recurly_change_log]) @endif
@endsection @section('page_style') {{ Html::style('/css/daterangepicker.css') }} {{ Html::style('/css/daterangepicker_custom.css') }} @endsection @section('page_script') {{ Html::script('/js/moment.min.js') }} {{ Html::script('/js/daterangepicker.js') }} @endsection