@extends('layouts.app') @section('css') @endsection @section('content')
{{ __('Payments') }} >> #{{ sprintf("%04d", $paymentInfo->id) }}
@if($paymentInfo->status == "Approved")
{{$paymentInfo->status}}
@elseif($paymentInfo->status == "Pending" )
@elseif($paymentInfo->status == "Declined")
{{ $paymentInfo->status }}
@endif
{{ __('Print') }} {{ __('PDF') }} {{ __('Edit') }} @if(Helpers::has_permission(Auth::user()->id, 'delete_payment'))
{{csrf_field()}}
@endif
{{ $company_name }}
{{ $company_street }}
{{ $company_city }}, {{ $company_state }}
{{ $company_country_name }}, {{ $company_zipCode }}
{{ isset($paymentInfo->customer->first_name) ? $paymentInfo->customer->first_name : '' }} {{ isset($paymentInfo->customer->last_name) ? $paymentInfo->customer->last_name : '' }}
{{ isset($paymentInfo->customer->customerBranch->billing_street) ? $paymentInfo->customer->customerBranch->billing_street : '' }}
{{ isset($paymentInfo->customer->customerBranch->billing_state) ? $paymentInfo->customer->customerBranch->billing_state : '' }}{{ isset($paymentInfo->customer->customerBranch->billing_city) ? ', ' . $paymentInfo->customer->customerBranch->billing_city : '' }}
{{ isset($paymentInfo->customer->customerBranch->billingCountry) ? $paymentInfo->customer->customerBranch->billingCountry->name : '' }} {{ isset($paymentInfo->customer->customerBranch->billing_zip_code) ? ', ' . $paymentInfo->customer->customerBranch->billing_zip_code : '' }}
{{ __('Payment Date') }} : {{ formatDate($paymentInfo->transaction_date)}}
{{ __('Payment Method') }} : {{ isset($paymentInfo->paymentMethod) && isset($paymentInfo->paymentMethod->name)? $paymentInfo->paymentMethod->name : __('N/A') }}
{{ __('Invoice No') }} {{ __('Invoice Date') }} {{ __('Invoice Amount') }} {{ __('Paid Amount') }}
{{ $paymentInfo->saleOrder->reference }} {{ formatDate($paymentInfo->saleOrder->order_date) }} {{ formatCurrencyAmount($paymentInfo->saleOrder->total, $paymentInfo->saleOrder->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
@inject('saleOrder', 'App\Models\SaleOrder') @inject('country', 'App\Models\Country') @php if(isset($paymentInfo->customer->customerBranch->billing_country_id) && $paymentInfo->customer->customerBranch->billing_country_id != 0 ) { $billingCountry = $country->getCountry($paymentInfo->customer->customerBranch->billing_country_id); } else { $billingCountry = ''; } @endphp @endsection @section('js') {!! translateValidationMessages() !!} @endsection