![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/syn.corals.io/Corals/modules/Syndicate/resources/views/councils/ |
@extends('layouts.crud.create_edit') @section('content_header') @component('components.content_header') @slot('page_title') {{ $title_singular }} @endslot @slot('breadcrumb') {{ Breadcrumbs::render('syndicate_council_create_edit') }} @endslot @endcomponent @endsection @section('content') @parent <div class="row"> <div class="col-md-6"> @component('components.box') {!! CoralsForm::openForm($council) !!} {!! CoralsForm::customFields($council) !!} <div class="row"> <div class="col-md-3"> {!! CoralsForm::select("user_id", 'Syndicate::attributes.pharmacy.responsible_pharmacist' ,[], true,null, [ 'class'=>'select2-ajax', 'data'=>[ 'model'=>\Corals\Modules\Syndicate\Models\Pharmacist::class, 'columns'=> json_encode(['name','email','last_name']), 'show_identifier'=>json_encode('true'), 'selected'=>json_encode([$council->user_id]), ] ], 'select2') !!} </div> <div class="col-md-3"> {!! CoralsForm::date('date_of_council', 'Syndicate::attributes.council.date_of_council', true) !!} </div> <div class="col-md-3"> {!! CoralsForm::number('penalty', 'Syndicate::attributes.council.penalty_price', true, null,['step'=>'50','min'=>'0','max'=>'10000']) !!} </div> </div> <div class="row"> <div class="col-md-3" id="check"> <label class="d-block"> </label> {!! CoralsForm::checkbox("withdraw", 'Syndicate::attributes.council.withdraw_licence', $isWithdrawal??false) !!} </div> <div class="col-md-3 withdraw_details" style="{{$isWithdrawal??false ?'':'display:none'}}"> {!! CoralsForm::date('start_withdrawn_license', 'Syndicate::attributes.council.start_withdrawn_license', true ,optional($council->certificateBan)->start_withdrawn_license) !!} </div> <div class="col-md-3 withdraw_details" style="{{$isWithdrawal??false ?'':'display:none'}}"> {!! CoralsForm::date('end_withdrawn_license', 'Syndicate::attributes.council.end_withdrawn_license', true,optional($council->certificateBan)->end_withdrawn_license) !!} </div> </div> <div class="row"> <div class="col-md-12"> {!! CoralsForm::textarea('details','Syndicate::attributes.council.details') !!} </div> </div> {!! CoralsForm::formButtons() !!} {!! CoralsForm::closeForm($council) !!} @endcomponent </div> </div> @endsection @push('partial_js') <script> $(document).ready(function () { $('#withdraw').on('click', function (event) { if ($(this).prop('checked')) { $('.withdraw_details').show(); } else { $('.withdraw_details').hide(); } }) }) </script> @endpush