@extends('admin.layouts.main') @section('title') @if($id) Edit Incentive @else Add Incentive @endif @endsection @section('content') @include("admin.common.sidebar") Finance Incentives @if($id) Edit Incentive @else Add Incentive @endif @csrf @if($id) Edit Incentive @else Add Incentive @endif Client * Select client @foreach($clients as $client) id) selected="selected" @elseif($id && $incentive->client_id == $client->id) selected="selected" @endif>{{ $client->name}} @endforeach @if($errors->has('client_id')) {{ $errors->first('client_id')}} @endif Product * Select Product @if($id) @foreach($products as $product) product_id == $product->id ? 'selected' : '' }}> {{ $product->product_name }} @endforeach @endif @if($errors->has('product_id')) {{ $errors->first('product_id')}} @endif Agent * Select Agent @if($id) @foreach($agents as $agent) agent_id == $agent->agentData['id'] ? 'selected' : '' }}> {{ $agent->agentData['full_name'] }} @endforeach @endif @if($errors->has('agent_id')) {{ $errors->first('agent_id')}} @endif Amount * @if($errors->has('amount')) {{ $errors->first('amount')}} @endif Month * date_range @if($errors->has('amount')) {{ $errors->first('cal_start_date')}} @endif Notes * @if($errors->has('reason')) {{ $errors->first('reason')}} @endif @endsection @push('pageJs') @endpush