@extends('layouts.guest') @section('title', __('contact.view_contact')) @section('content') @php $transaction_types = []; if (in_array($contact->type, ['both', 'supplier'])) { $transaction_types['purchase'] = __('lang_v1.purchase'); $transaction_types['purchase_return'] = __('lang_v1.purchase_return'); } if (in_array($contact->type, ['both', 'customer'])) { $transaction_types['sell'] = __('sale.sale'); $transaction_types['sell_return'] = __('lang_v1.sell_return'); } $transaction_types['opening_balance'] = __('lang_v1.opening_balance'); @endphp