@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('service_items.add_service') }}

@include('flash::message') @include('clinical_data::service_items.menu')
@if (session()->has('streamline_setup'))

{{ __('service_items.streamline_setup') }}

{{ Form::open(['route' => 'service_items.store','data-toggle'=>'validator']) }}
{{ Form::label('name', __('service_items.service_name')) }} {{ Form::text('name', '', ['class' => 'form-control compulsory']) }}
{{ Form::label('non_insured_price', __('service_items.non_insured_price')) }} {{ Form::number('non_insured_price', '', ['class' => 'form-control compulsory']) }}
{{ Form::label('account_id', __('service_items.chart_account_name')) }} {{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory']) }}
{{ Form::label('description', __('service_items.description')) }} {{ Form::textArea('description', '', ['class'=>'form-control', 'rows' => 4]) }}
{{ Form::label('type_of_service',__('service_items.type_of_service')) }}
{{ Form::radio('type_of_service', 'Consultation', false, []) }} {{ __('service_items.consultation') }}
{{ Form::radio('type_of_service', 'Co_Payment', false, []) }} {{ __('service_items.copayment') }}
{{ Form::radio('type_of_service', 'Service', false, []) }} {{ __('service_items.service') }}

{{ __('service_items.select_any_list') }}

@foreach ($services as $service)
{{ Form::checkbox('selected_services[]', $service['Item_Name'], false) }} {{ $service['Item_Name'] }}   
@endforeach
{{ Form::button(__('service_items.next'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }} {{ Form::button(__('service_items.skip'),['type'=>'submit','name' => 'skip', 'value' => 'skip','class'=>'btn btn-default waves-effect waves-light m-r-10']) }} @else {{ Form::open(['route' => 'service_items.store','data-toggle'=>'validator']) }}
{{ Form::label('name', __('service_items.service_name')) }} {{ Form::text('name', '', ['class' => 'form-control compulsory']) }}
{{--
{{ Form::label('attach_to_staff_name', __('service_items.attach_staff_name')) }}
 {{ Form::radio('attach_to_staff_name', 1, false, ["id"=> "attach_staff_name", "onclick" => "show('attach_staff_name_div')"]) }} {{ __('service_items.yes') }}  {{ Form::radio('attach_to_staff_name', 0, false, ["id"=> "do_not_attach_staff","onclick" => "hide('attach_staff_name_div')"]) }} {{ __('service_items.no') }}
--}}
{{ Form::label('non_insured_price', 'Cash Price') }} {{ Form::number('non_insured_price', '', ['class' => 'form-control compulsory', 'id' => 'non_insured_price']) }}
{{ Form::label('available', __('service_items.is_service_available')) }}  {{ Form::radio('available', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }} {{ __('service_items.yes') }}    {{ Form::radio('available', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }} {{ __('service_items.no') }}
@php $price_list_categories = \Streamline\Models\PriceListCategories::select('patient_category_id', 'id')->get(); @endphp @foreach($price_list_categories as $record)
{{ Form::label('non_insured_price', get_name($record->patient_category_id, 'id', 'name', 'patient_categories').' Price') }} {{ Form::hidden('price_list_category_id[]', $record->id) }} {{ Form::number('price_list_price[]', '', ['class'=>'form-control price_list_price']) }}
@endforeach
{{ Form::label('account_id', __('service_items.chart_account_name')) }} {{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory']) }}
{{ Form::label('description', __('service_items.description')) }} {{ Form::textArea('description', '', ['class'=>'form-control', 'rows' => 4]) }}
{{ Form::label('type_of_service',__('service_items.type_of_service')) }}
{{ Form::radio('type_of_service', 'Consultation', false, []) }} {{ __('service_items.consultation') }}
{{ Form::radio('type_of_service', 'Co_Payment', false, []) }} {{ __('service_items.copayment') }}
{{ Form::radio('type_of_service', 'Service', false, []) }} {{ __('service_items.service') }}
{{ Form::button(__('service_items.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }} {{ Form::button(__('service_items.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }} @endif {{ Form::close() }}
@endsection @push('scripts') @endpush