resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,111 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('sundries.edit_sundry') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('sundries.dashboard') }}</a></li>
<li><a href="/sundries/">{{ __('sundries.sundries') }}</a></li>
<li class="active">{{ __('sundries.edit') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('clinical_data::sundries.menu')
</div>
</div>
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::model($sundry, ['method' => 'PUT', 'route' => ['sundries.update',$sundry] , 'data-toggle' => 'validator']) }}
<div class="form-group">
{{ Form::label('name', __('sundries.sundry_name')) }}
{{ Form::text('name', $sundry->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('price', __('sundries.buying_price')) }}
{{ Form::number('price', $sundry->cost_price, ['class' => 'form-control compulsory', 'required', 'step' => '.01']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group" id="non_insured_price_div">
{{ Form::label('non_insured_price', __('sundries.non_insured_price')) }}
{{ Form::number('non_insured_price', $sundry->non_insured_price, ['class' => 'form-control', 'step' => '.01']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('available', __('sundries.is_sundry_available')) }}&ensp;
{{ Form::radio('available', 1, $sundry->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }} {{ __('sundries.yes') }} &nbsp;&nbsp;
{{ Form::radio('available', 0, $sundry->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }} {{ __('sundries.no') }}
<div class="help-block with-errors"></div>
</div>
@if($sundry->price_list_category && $sundry->price_list_category != '')
@php
$price_list_categories = explode(",", $sundry->price_list_category);
$price_list_prices = explode(",", $sundry->price_list_price);
@endphp
@for($i = 0; $i < count($price_list_categories); $i++)
<div class="form-group">
{{ Form::label('non_insured_price', get_name($price_list_categories[$i], 'id', 'name', 'patient_categories').' Price') }}
{{ Form::hidden('price_list_category_id[]', $price_list_categories[$i]) }}
{{ Form::number('price_list_price[]', $price_list_prices[$i], ['class'=>'form-control price_list_price']) }}
</div>
@endfor
@endif
<div class="form-group">
{{ Form::label('account_id', __('sundries.income_account')) }}
{{ Form::select('account_id', $income_accounts, null, ['class' => 'form-control']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('form_id', __('sundries.form')) }}
{{ Form::select('form_id', $forms, $sundry->form_id, ['class' => 'form-control']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('cog_account', __('sundries.cost_of_goods')) }}
{{ Form::select('cog_account', $cost_of_goods_accounts, $sundry->cost_of_goods_account, ['class' => 'form-control']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('inventory_account', __('sundries.inventory_asset_account')) }}
{{ Form::select('inventory_account', $inventory_asset_accounts, $sundry->inventory_account, ['class' => 'form-control']) }}
<div class="help-block with-errors"></div>
</div>
{{ Form::button(__('sundries.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('sundries.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
<!-- icheck -->
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
@endpush