@if($transaction->seller) @if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.transactions.change-seller'))) {{Lang::get('property.change_primary_seller')}} @endif @if(count($sellers) > 1) @if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.transactions.delete-seller'))) Delete Seller @endif @endif @if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.transactions.add-seller'))) {{Lang::get('property.add_seller')}} @endif @endif @if($transaction->buyer) @if($propertyOwnershipApplication) @if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.transactions.change-buyer'))) {{Lang::get('Change Primary Buyer')}} @endif @endif @if(count($propertyOwnershipApplication) > 1) @if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.transactions.delete-buyer'))) {{Lang::get('property.delete_buyers')}} @endif @endif @if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.transactions.add-buyers'))) {{Lang::get('property.add_buyers')}} @endif @endif
@if($transaction->seller)

{{Lang::get('customer.seller_details')}}

{{Lang::get('customer.sellers')}} @if($transaction->status == 'Finalized') seller->id) }}" target="_blank">{{$transaction->seller->full_name}} @else @if(count($sellers) > 0) @foreach($sellers as $seller) customer->id) }}" target="_blank">{{ $seller->customer->full_name }} @if ($seller->customer->id == $transaction->seller_id) [P] @endif
@endforeach @elseif($transaction->seller) seller->id) }}" target="_blank">{{$transaction->seller->full_name}} @endif @endif
{{Lang::get('customer.purchase_date')}} @if($property->currentowners && isset($property->currentowners[0])) {{(isset($property->currentowners[0]->purchase_date) && $property->currentowners[0]->purchase_date !="0000-00-00") ? date('d-m-Y', strtotime($property->currentowners[0]->purchase_date)) : ''}} @endif
{{Lang::get('customer.purchase_amount')}} @if($property->currentowners && isset($property->currentowners[0])) $ {{$property->currentowners[0]->purchase_price }} @endif
@endif @if($transaction->buyer)

{{Lang::get('customer.buyer_details')}}

{{Lang::get('customer.buyers')}} @if($transaction->buyer->customer_type != 'Personal' && $transaction->buyer->customer_type != '') buyer->id) }}" target="_blank">{{$transaction->buyer->business_name}} @else @if(count($propertyOwnershipApplication) > 0) @foreach($propertyOwnershipApplication as $buyer) customer->id) }}" target="_blank">{{ $buyer->customer->full_name }} @if ($buyer->customer->id == $transaction->buyer_id) [P] @endif
@endforeach @elseif($transaction->buyer) buyer->id) }}" target="_blank">{{ $transaction->buyer->full_name }} [P] @endif @endif
{{Lang::get('customer.mobile_number')}} @if($propertyOwnershipApplication) {{ $transaction->buyer->mobile_1 }} {{ isset($transaction->buyer->mobile_2) ? '/ '. $transaction->buyer->mobile_2 : ''}} @endif
@endif @if(isset($transaction->agent->full_name))

{{Lang::get('customer.agent_details')}}

{{Lang::get('customer.agent')}} {{$transaction->agent->full_name}}
@endif