@if (isset($company) && $company) @endif {{-- to be used some day --}} @foreach ($data as $row) @if (isset($company) && $company) @endif @endforeach
{!! pagination_sort('id', t('ID')) !!}@t('Venue')@t('Name') @t('Total Amount') @t('Net Amount') {!! pagination_sort('date', t('Date')) !!} {!! pagination_sort('created', t('Created')) !!} {!! pagination_sort('status', t('Status')) !!} {!! pagination_sort('type', t('Type')) !!}
{!! Form::text('id') !!} {!! Form::text('name') !!} {!! Form::number('net_amount') !!} {!! Form::text('date', null, ['class' => 'form-control datepicker']) !!} {!! Form::text('created', null, ['class' => 'form-control datepicker']) !!} {!! Form::select( 'status', [ '' => '', 'active' => t('Active'), 'refund' => t('Refund'), 'cancelled' => t('Canceled'), ], null ) !!} {!! Form::select( 'status', [ '' => '', 'automatic' => t('Automatic'), 'manual' => t('Manual') ], null ) !!}
{{ $row->id }}{{ $row->Venue->name }} @if ($row->user_id) {{ $row->User->first_name }} {{ $row->User->last_name }} @else @if (isset($row->extra->user)) {{ $row->extra->user->first_name}} {{ $row->extra->user->last_name}} @else @t('N/A') @endif @endif {{ amount( $row->amount, [ 'to' => $row->currency_id ] ) }} @if (in_array($row->status, ['active', 'pending'])) {{ amount( $row->net_amount, [ 'to' => $row->currency_id ] ) }} @else {{ $row->status }} @endif @date($row->date) @if ($row->end_date) @if (isset($row->days) && $row->days > 0) - @date($row->end_date) @else ยท @time($row->start_time) - @time($row->end_time) @endif @endif @datetime($row->created) {{ $row->status }} {{ $row->type }} @if ($row->type == 'manual') ( {{ $row->payment }} ) @endif
{!! pagination(['total' => $pagination_total]) !!}