@if(isset($companyInfo['logo']) && $companyInfo['logo'] && file_exists(public_path($companyInfo['logo']))) {!! General::renderImages($companyInfo['logo'], 'medium', 'img_td') !!} @endif
INVOICE
{{isset($transactions['id']) && $transactions['id'] ? '#'.$transactions['id'] : '-'}}
{{ isset($transactions['created']) && $transactions['created'] ? date('d M, Y',strtotime($transactions['created'])) : '-' }}
{{isset($transactions['users']['country_name']) && $transactions['users']['country_name'] ? $transactions['users']['country_name'] : '-'}}
Billed From
{{isset($companyInfo['company_name']) && $companyInfo['company_name'] ? $companyInfo['company_name'] : ''}}
{{isset($companyInfo['company_phonenumber']) && $companyInfo['company_phonenumber'] ? $companyInfo['company_phonenumber'] : ''}}
{{isset($companyInfo['company_email']) && $companyInfo['company_email'] ? $companyInfo['company_email'] : ''}}
Billed to
{{isset($transactions['users']['first_name']) && $transactions['users']['first_name'] ? $transactions['users']['first_name'].' '. $transactions['users']['last_name']: '-'}}
{{isset($transactions['users']['phonenumber']) && $transactions['users']['phonenumber'] ? $transactions['users']['phonenumber'] : '-'}}
{{isset($transactions['users']['email']) && $transactions['users']['email'] ? $transactions['users']['email'] : '-'}}
Country Package Name Category Total Videos Amount
{{isset($item['country']['short_name']) && $item['country']['short_name'] ? $item['country']['short_name'] : '-'}} {{isset($item['title']) && $item['title'] ? $item['title'] : '-'}} {{isset($item['category']['title']) && $item['category']['title'] ? $item['category']['title'] : '-'}} {{isset($item['videos_count']) && $item['videos_count'] ? $item['videos_count'] : '-'}} {{isset($transactions['amount']) && $transactions['amount'] ? $transactions['currency'].''.$transactions['amount'] : '-'}}
Sub total {{isset($transactions['sub_total']) && $transactions['sub_total'] ? $transactions['currency'].''.$transactions['sub_total'] : '-'}}
VAT -
Total Amount (incl . VAT) {{isset($transactions['amount']) && $transactions['amount'] ? $transactions['currency'].''.$transactions['amount'] : '-'}}
@if(isset($transactions['status']) && $transactions['status'] == 2) @elseif(isset($transactions['status']) && $transactions['status'] == 1) @else @endif

Transaction Detail

Transaction Id {{isset($transactions['charge_id']) && $transactions['charge_id'] ? $transactions['charge_id'] : '-'}}
Paid on {{ isset($transactions['created']) && $transactions['created'] ? date('d M, Y',strtotime($transactions['created'])) : '-' }}
Payment Method {{ isset($transactions['card_type']) && $transactions['card_type'] ? ucfirst($transactions['card_type']).' Card' : '-' }}
Transaction Status   Success     Pending     Failed