@extends('admin._layouts.master') @section('content')

@transUcFirst('admin.sections.partners.sabee.title')

@if(company()->isSabeeConnected()) {{------------------------------------------------------------------------------------------------- sabeeApp is connected --}}  @trans('admin.partners.sabee.connected', ['hotel_name' => $sabeePartner->name]) @if(user()->hasPrivilege('sabee_admin') || user()->hasPrivilege('superadmin'))     @transUc('.disconnect') @endif

@transUc('.name') : {{ $sabeePartner->name }}
@transUc('validation.attributes.phone') : {{ $sabeePartner->phone }}
@transUc('validation.attributes.email') : {{ $sabeePartner->email }}
@transUc('validation.attributes.address') : {{ $sabeePartner->address }}

  @transUc('.get_services') @else {{--------------------------------------------------------------------------------------------- sabeeApp is not connected --}}

@trans('.not_connected')

@trans('.get_your_api_key')
@if(user()->hasPrivilege('sabee_admin') || user()->hasPrivilege('superadmin')) {!! Form::open(['url' => route('admin.partners.sabee.assign')]) !!} {!! FormGroup::text('hotel_id', trans('.hotel_id')) !!} {!! Form::close() !!} @endif @endif
@if(company()->isSabeeConnected()) {{-------------------------------------------------------------------------------------------------------------------------- transcations --}}
{{ $accountable->name }} @transUc('models.generic.balance') @currencySymbol {{ formatCurrency($accountable->companyAccountBalance) }}

@transUc('models.generic.transactions')

   @trans('ui.pagination_results_info', [ 'total' => $transactions->total(), 'listed' => count($transactions) ])

@trans('ui.listing.click_on_the_rows_for_more_info') {{----}}
@foreach($transactions as $transaction) action_type != 'sale') data-click-url="{{ route('admin.partners.sabee.transactions.edit', $transaction->id) }}" @endif > @endforeach
@transUc('models.transaction.date') @transUc('models.transaction.change') @transUc('models.generic.payment_type') @transUc('models.transaction.action_type') @transUc('models.generic.notes')
{{ $transaction->paid_at->format(DATETIME_FORMAT) }} @currencySymbol {{ formatCurrency($transaction->amount) }} @transUcFirst('generic.financial.payment_types.' . PAYMENT_TYPE[$transaction->payment_type]) @if($transaction->action_type) @if($transaction->action_type == 'sale') @transUcFirst('generic.financial.sale') @elseif($transaction->action_type == 'stock_delivery') @transUcFirst('models.delivery.model_name') @elseif($transaction->action_type == 'subscription') @endif @else @transUcFirst('generic.financial.payment') @endif {{ nl2brwsp($transaction->note) }}
@if($transactions) {!! $transactions->render() !!} @endif
@endif @endsection @push('scripts') @endpush