@extends('layouts.main') @section('title') {{ __('Commission Configuration') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
{{-- Listing First --}}
@if (has_permissions('delete', 'package')) @endif
{{ __('ID') }} {{ __('Customer Name') }} {{ __('Customer Email') }} {{ __('Package Name') }} {{ __('Start Date') }} {{ __('End Date') }} {{ __('Rental Commission (%)') }} {{ __('Sale Commission (%)') }} {{ __('Notes') }} {{ __('Status') }} {{ __('Action') }}
{{-- Form Below Listing --}} @if (has_permissions('create', 'package'))
{{ __('Manual Assignment') }}
{{ __('Use this form to manually assign commission configuration to a customer') }}
{!! Form::open(['route' => 'commission-config.store', 'data-parsley-validate', 'class' => 'create-form', 'data-success-function'=> "formSuccessFunction"]) !!}
{{ __('Only Lex Managed Listing packages are available') }}
{{ Form::number('rental_commission_percentage', '50', [ 'class' => 'form-control', 'placeholder' => trans('Percentage of first month rent'), 'data-parsley-required' => 'true', 'id' => 'rental_commission_percentage', 'min' => '0', 'max' => '100', 'step' => '0.01' ])}} {{ __('Commission percentage for rental properties (e.g., 50% of first month rent)') }}
{{ Form::number('sale_commission_percentage', '5', [ 'class' => 'form-control', 'placeholder' => trans('Percentage of sale price'), 'data-parsley-required' => 'true', 'id' => 'sale_commission_percentage', 'min' => '0', 'max' => '100', 'step' => '0.01' ])}} {{ __('Commission percentage for property sales (e.g., 5% of total property sale price)') }}
{{ Form::date('start_date', now()->format('Y-m-d'), [ 'class' => 'form-control', 'id' => 'start_date', 'min' => now()->format('Y-m-d') ])}} {{ __('Plan activation date (defaults to today)') }}
{{ Form::textarea('notes', '', [ 'class' => 'form-control', 'placeholder' => trans('Additional notes'), 'id' => 'notes', 'rows' => '3' ])}}
{{ Form::submit(trans('Save Configuration'), ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
@endif
@endsection @section('style') @endsection @section('script') @endsection