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,144 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
@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">{{ __('pharmacy.previous_requisitions') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('pharmacy.dashboard') }}</a></li>
<li><a href="{{ route('pharmacy.index') }}">{{ __('pharmacy.pharmacist') }}</a></li>
<li class="active">{{ __('pharmacy.previous_requisitions') }} </li>
</ol>
</div>
</div>
@include('flash::message')
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<div class="row">
<div class="col-sm-3 form-group">
{{ Form::open(['method' => 'post', 'route'=>'pharmacy.previous_requisitions'])}}
{{ Form::label('quotation_type', __('pharmacy.requisition_type')) }}
{{ Form::select('quotation_type', $quotation_type_options , null, ['class'=>'form-control compulsory', 'required']) }}
<br>
<strong>{{ __('pharmacy.requisitioned_between') }}</strong><br>
{{ Form::label('start_date',__('pharmacy.start')) }}
<div class="input-group">
{{ Form::text('start_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose1']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
<br>
{{ Form::label('end_date',__('pharmacy.end')) }}
<div class="input-group">
{{ Form::text('end_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose2']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
<div class="help-block with-errors"></div>
{{ Form::button(__('pharmacy.search'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
{{ Form::close() }}
</div>
<div class="col-sm-9" style="padding-top: 25px;">
<div class="label label-warning"> {!! $display ?? '' !!}</div> <br>
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-striped table-hover">
<thead>
<tr>
<th style="width: 30%;">{{ __('pharmacy.requisition_number') }}</th>
<th style="width: 30%">{{ __('pharmacy.quantity') }}</th>
<th style="width: 20%">{{ __('pharmacy.date_requested') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@if(!is_null($results))
@foreach($results as $result)
<tr>
<td># {{ sprintf('%04u', $result->id) }}</td>
<td>
<?php
$drug_id_array = explode(",", $result->quantity_requested);
?>
{{ count($drug_id_array) }} {{ __('pharmacy.items') }}
</td>
<td>
{{ streamline_date(get_name($result->id, "id", "created_at", "requisitions")) }}
</td>
<td>
@if($result->issue_status == 1)
<form name="bill_form" action="{{ url('previous_issued_items_details') }}" method="post">
{{ csrf_field() }}
<input type="hidden" name="requisition_id" value="{{ $result->id }}"/>
<input type="hidden" name="item_type" value="{{ $result->quotation_type_id }}">
<button type="submit" name="add_bill_button" class="btn btn-sm btn-rounded btn-info">
<i class="fa fa-info-circle"></i>
<span style="margin-left: 10px;">{{ __('labs.details') }}</span>
</button>
</form>
@else
@if( $result->approval_status != 1)
<form name="quotation_form" action="{{ url('edit_previous_requisition') }}" method="post">
{{ csrf_field() }}
<input type="hidden" name="requisition_id" value="{{ $result->id }}"/>
<input type="hidden" name="item_type" value="{{ $result->quotation_type_id }}">
<button type="submit" name="previous_quotation_edit_button" class="btn btn-rounded btn-warning"><i class="fa fa-pencil"></i> {{ __('pharmacy.edit_requisition') }}</button>
</form>
@else
<a class="btn btn-success btn-rounded" href="/print_requisition_receipt/{{ $result->id }}"><i class="fa fa-eye"></i> {{ __('pharmacy.view') }}</a>
@endif
@endif
</td>
</tr>
@endforeach
@else
<td colspan="7"><span style="color: red;">{{ __('pharmacy.please_search_records') }}</span></td>
@endif
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
<!-- data time piker dependency -->
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<!-- -->
<script>
$('#datepicker-autoclose1,#datepicker-autoclose2').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy',
setDate: new Date(),
readOnly: true
});
</script>
@endpush