Spamworldpro Mini Shell
Spamworldpro


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/medad.corals.io/Corals/modules/Medad/resources/views/invoices/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/medad.corals.io/Corals/modules/Medad/resources/views/invoices/create_edit.blade.php
{!! CoralsForm::openForm($invoice,['files' => true]) !!}

{!! Form::hidden('customer_company_id', $purchaseOrder->customer_company_id) !!}
{!! Form::hidden('customer_branch_id',$purchaseOrder->customer_branch_id) !!}
{!! Form::hidden('supplier_company_id', $purchaseOrder->supplier_company_id) !!}
{!! Form::hidden('supplier_branch_id', $purchaseOrder->supplier_branch_id) !!}

{!! Form::hidden('purchase_order_id', $purchaseOrder->id) !!}
{!! Form::hidden('project_id', $purchaseOrder->project_id) !!}

<div class="row">
    <div class="col-md-6">
        <div class="form-group">
            <label class="d-block">
                @lang('Medad::attributes.branch.customer_company')
            </label>
            <strong>{{ optional($purchaseOrder->customerCompany)->presentStripTags('name')??'-' }}</strong>
        </div>
        <div class="form-group">
            <label class="d-block">
                @lang('Medad::attributes.branch.customer_branch')
            </label>
            <strong>{{ optional($purchaseOrder->customerBranch)->presentStripTags('name')??'-' }}</strong>
        </div>
    </div>
    <div class="col-md-6">
        <div class="form-group">
            <label class="d-block">
                @lang('Medad::attributes.branch.supplier_company')
            </label>
            <strong>{{ optional($purchaseOrder->supplierCompany)->presentStripTags('name')??'-' }}</strong>
        </div>
        <div class="form-group">
            <label class="d-block">
                @lang('Medad::attributes.branch.supplier_branch')
            </label>
            <strong>{{ optional($purchaseOrder->supplierBranch)->presentStripTags('name')??'-' }}</strong>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-4">

        {!! CoralsForm::select('owner_id', 'Medad::attributes.owner', \Medad::getCompanyUsers(),true,\Auth::user()->id, [],'select2') !!}

        {!! CoralsForm::text('code', 'Medad::attributes.code', false,null,['help_text'=>'Medad::attributes.code_help' ]) !!}

    </div>
    <div class="col-md-4">

        <div class="row">
            <div class="col-md-6">
                {!! CoralsForm::number('types_count', 'Medad::attributes.types_count',true, $invoice->exists?$invoice->types_count:$purchaseOrder->getNewInvoiceDefaultValue('types_count'),['min'=>0] ) !!}
            </div>
            <div class="col-md-6">
                {!! CoralsForm::number('total_quantity', 'Medad::attributes.total_quantity',true,$invoice->exists?$invoice->total_quantity:$purchaseOrder->getNewInvoiceDefaultValue('total_quantity') ,
                                   ['step'=>0.01,'min'=>0]) !!}
            </div>
        </div>

        {!! CoralsForm::number('amount', 'Medad::attributes.amount', true,$invoice->exists?$invoice->amount:$purchaseOrder->getNewInvoiceDefaultValue('amount'),
                          ['step'=>0.01,'min'=>0]) !!}

    </div>

</div>
{!! CoralsForm::textarea('notes','Medad::attributes.invoice.notes', false, null,['class'=>'ckeditor-simple']) !!}

@include('Media::attachments_section',[
                'hasForm'=> false,
                 'object'=>$invoice,
                  ])

{!! CoralsForm::customFields($invoice) !!}

{!! CoralsForm::formButtons('',[],['show_cancel'=>false],[[
                            'label'=>trans('Medad::attributes.save_and_sent'),
                            'type'=>'submit',
                            'attributes'=>['name'=>'status-with-submit','value'=>'sent','class'=>'btn btn-primary mr-3'],
                     ]]) !!}

{!! CoralsForm::closeForm($invoice) !!}

Spamworldpro Mini