@extends('layouts.customer_panel') @section('css') @endsection @section('content')
{{ __('Payments') }} >> #{{ sprintf("%04d", $paymentInfo->id) }}
@if($paymentInfo->status == "Approved")
{{ $paymentInfo->status }}
@elseif($paymentInfo->status == "Pending" )
{{ $paymentInfo->status }}
@elseif($paymentInfo->status == "Declined")
{{ $paymentInfo->status }}
@endif
{{ __('Bill To') }}
{{ $company_name }}
{{ $company_street }}
{{ $company_city }}{{ !empty($company_state) ? ', ' . $company_state : '' }}
{{ $company_country_name }}{{ !empty($company_zipCode) ? ', ' . $company_zipCode : '' }}
{{ __('Customer') }}
{{ $paymentInfo->customer->name }}
{{ isset($paymentInfo->customer->customerBranch) ? $paymentInfo->customer->customerBranch->billing_street : '' }}{{ isset($paymentInfo->customer->customerBranch->billing_city) ? ", " : '' }} {{ isset($paymentInfo->customer->customerBranch->billing_city) ? $paymentInfo->customer->customerBranch->billing_city : '' }}
{{ isset($paymentInfo->customer->customerBranch) ? $paymentInfo->customer->customerBranch->billing_state : '' }} {{ isset($paymentInfo->customer->customerBranch->billing_zip_code) ? " - ":'' }} {{ isset($paymentInfo->customer->customerBranch->billing_zip_code) ? $paymentInfo->customer->customerBranch->billing_zip_code : '' }} {{ isset($paymentInfo->customer->customerBranch->billingCountry) ? ',': ''}} {{ isset($paymentInfo->customer->customerBranch->billingCountry) ? $paymentInfo->customer->customerBranch->billingCountry->name : '' }}
{{ __('Payment Date') }} : {{ formatDate($paymentInfo->transaction_date)}}
{{ __('Payment Method') }} : {{ !empty($paymentInfo->paymentMethod) ? $paymentInfo->paymentMethod->name : '' }}
{{ __('Invoice No') }} {{ __('Invoice Date') }} {{ __('Invoice Amount') }} {{ __('Paid Amount') }}
{{ $paymentInfo->saleOrder->reference }} {{ formatDate($paymentInfo->saleOrder->order_date) }} {{ formatCurrencyAmount($paymentInfo->saleOrder->total, $paymentInfo->currency->symbol) }} {{ formatCurrencyAmount($paymentInfo->amount, $paymentInfo->currency->symbol) }}
@if (! empty($files) && count($files) > 0)
{{ __('Files') }}
@php $groupName = 'pay-'.(string) $paymentInfo->id; @endphp @foreach ($files as $file) @php $url = 'public/dist/js/html5lightbox/no_preview.png?v'. $file->id; $extra = ''; $div = ''; $fileName = !empty($file->original_file_name) ? $file->original_file_name : $file->file_name; if (in_array($file->extension, array('jpg', 'png', 'jpeg', 'gif', 'pdf', 'flv', 'webm', 'mp4', 'ogv', 'swf', 'm4v', 'ogg'))) { $url = url($filePath) .'/'. $file->file_name; } elseif (in_array($file->extension, array('csv', 'xls', 'xlsx', 'doc', 'docx', 'ppt', 'pptx', 'txt'))) { $url = '#pdiv-'. $file->id; $extra = 'data-width=900 data-height=600'; $div = '
'; } @endphp
@if (in_array($file->extension, array('jpg', 'png', 'jpeg', 'gif'))) @else @endif
{{ strlen($fileName) > 15 ? substr_replace($fileName, "..", 15) : $file->original_file_name }}
@endforeach
@endif
@endsection @section('js') @endsection