D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
kader-lms.com
/
storage
/
framework
/
views
/
Filename :
430d21ccf794497c29bad09cd03b7ffc.php
back
Copy
<?php $__env->startSection('title'); ?> <?php echo app('translator')->get('accounts.chart_of_account'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('mainContent'); ?> <section class="sms-breadcrumb mb-20"> <div class="container-fluid"> <div class="row justify-content-between"> <h1><?php echo app('translator')->get('accounts.chart_of_account'); ?></h1> <div class="bc-pages"> <a href="<?php echo e(route('dashboard')); ?>"><?php echo app('translator')->get('common.dashboard'); ?></a> <a href="#"><?php echo app('translator')->get('accounts.accounts'); ?></a> <a href="#"><?php echo app('translator')->get('accounts.chart_of_account'); ?></a> </div> </div> </div> </section> <section class="admin-visitor-area up_st_admin_visitor"> <div class="container-fluid p-0"> <?php if(isset($chart_of_account)): ?> <?php if(userPermission("chart-of-account-store")): ?> <div class="row"> <div class="offset-lg-10 col-lg-2 text-right col-md-12 mb-20"> <a href="<?php echo e(route('chart-of-account')); ?>" class="primary-btn small fix-gr-bg"> <span class="ti-plus pr-2"></span> <?php echo app('translator')->get('common.add'); ?> </a> </div> </div> <?php endif; ?> <?php endif; ?> <div class="row"> <div class="col-lg-3"> <div class="row"> <div class="col-lg-12"> <?php if(isset($chart_of_account)): ?> <?php echo e(Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => array('chart-of-account-update',@$chart_of_account->id), 'method' => 'PUT', 'enctype' => 'multipart/form-data'])); ?> <?php else: ?> <?php if(userPermission("chart-of-account-store")): ?> <?php echo e(Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'chart-of-account-store', 'method' => 'POST', 'enctype' => 'multipart/form-data'])); ?> <?php endif; ?> <?php endif; ?> <div class="white-box"> <div class="main-title"> <h3 class="mb-15"><?php if(isset($chart_of_account)): ?> <?php echo app('translator')->get('accounts.edit_chart_of_account'); ?> <?php else: ?> <?php echo app('translator')->get('accounts.add_chart_of_account'); ?> <?php endif; ?> </h3> </div> <div class="add-visitor"> <div class="row"> <div class="col-lg-12"> <div class="primary_input"> <label class="primary_input_label" for=""><?php echo app('translator')->get('accounts.head'); ?> <span class="text-danger"> *</span></label> <input class="primary_input_field form-control<?php echo e(@$errors->has('head') ? ' is-invalid' : ''); ?>" type="text" name="head" autocomplete="off" value="<?php echo e(isset($chart_of_account)? $chart_of_account->head: old('head')); ?>"> <input type="hidden" name="id" value="<?php echo e(isset($chart_of_account)? $chart_of_account->id: ''); ?>"> <?php if($errors->has('head')): ?> <span class="text-danger" > <strong><?php echo e(@$errors->first('head')); ?></strong> </span> <?php endif; ?> </div> </div> </div> <div class="row mt-15"> <div class="col-lg-12"> <label class="primary_input_label" for=""><?php echo app('translator')->get('common.type'); ?> <span class="text-danger"> *</span></label> <select class="primary_select form-control<?php echo e(@$errors->has('type') ? ' is-invalid' : ''); ?>" name="type"> <option data-display="<?php echo app('translator')->get('common.type'); ?> *" value=""><?php echo app('translator')->get('common.type'); ?> *</option> <option value="E" <?php echo e(@$chart_of_account->type == 'E'? 'selected':old('type') == ('E'? 'selected':'')); ?>><?php echo app('translator')->get('accounts.expense'); ?></option> <option value="I" <?php echo e(@$chart_of_account->type == 'I'? 'selected':old('type') == ('I'? 'selected':'' )); ?>><?php echo app('translator')->get('accounts.income'); ?></option> </select> <?php if($errors->has('type')): ?> <span class="text-danger invalid-select" role="alert"> <strong><?php echo e(@$errors->first('type')); ?></strong> </span> <?php endif; ?> </div> </div> <?php $tooltip = ""; if(userPermission("chart-of-account-store") || userPermission('chart-of-account-edit')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } ?> <div class="row mt-40"> <div class="col-lg-12 text-center"> <button class="primary-btn fix-gr-bg submit" data-toggle="tooltip" title="<?php echo e($tooltip); ?>"> <span class="ti-check"></span> <?php if(isset($chart_of_account)): ?> <?php echo app('translator')->get('accounts.update_head'); ?> <?php else: ?> <?php echo app('translator')->get('accounts.save_head'); ?> <?php endif; ?> </button> </div> </div> </div> </div> <?php echo e(Form::close()); ?> </div> </div> </div> <div class="col-lg-9"> <div class="white-box"> <div class="row"> <div class="col-lg-4 no-gutters"> <div class="main-title"> <h3 class="mb-15"><?php echo app('translator')->get('accounts.chart_of_account_list'); ?></h3> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <?php if (isset($component)) { $__componentOriginal163c8ba6efb795223894d5ffef5034f5 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal163c8ba6efb795223894d5ffef5034f5 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('table'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <table id="table_id" class="table" cellspacing="0" width="100%"> <thead> <tr> <th><?php echo app('translator')->get('common.name'); ?></th> <th><?php echo app('translator')->get('common.type'); ?></th> <th><?php echo app('translator')->get('common.action'); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $chart_of_accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chart_of_account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(@$chart_of_account->head); ?></td> <td> <?php if($chart_of_account->type=="A"): ?><?php echo app('translator')->get('accounts.asset'); ?> <?php endif; ?> <?php if($chart_of_account->type=="E"): ?><?php echo app('translator')->get('accounts.expense'); ?> <?php endif; ?> <?php if($chart_of_account->type=="I"): ?><?php echo app('translator')->get('accounts.income'); ?> <?php endif; ?> <?php if($chart_of_account->type=="L"): ?><?php echo app('translator')->get('accounts.liability'); ?> <?php endif; ?> </td> <td> <?php if (isset($component)) { $__componentOriginal5828d9175fa53510a68ffc290f67c972 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5828d9175fa53510a68ffc290f67c972 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.drop-down','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('drop-down'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if(userPermission('chart-of-account-edit')): ?> <a class="dropdown-item" href="<?php echo e(route('chart-of-account-edit', [@$chart_of_account->id])); ?>"><?php echo app('translator')->get('common.edit'); ?></a> <?php endif; ?> <?php if(userPermission("chart-of-account-delete")): ?> <a class="dropdown-item" data-toggle="modal" data-target="#deleteChartOfAccountModal<?php echo e(@$chart_of_account->id); ?>" href="#"><?php echo app('translator')->get('common.delete'); ?></a> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5828d9175fa53510a68ffc290f67c972)): ?> <?php $attributes = $__attributesOriginal5828d9175fa53510a68ffc290f67c972; ?> <?php unset($__attributesOriginal5828d9175fa53510a68ffc290f67c972); ?> <?php endif; ?> <?php if (isset($__componentOriginal5828d9175fa53510a68ffc290f67c972)): ?> <?php $component = $__componentOriginal5828d9175fa53510a68ffc290f67c972; ?> <?php unset($__componentOriginal5828d9175fa53510a68ffc290f67c972); ?> <?php endif; ?> </td> </tr> <div class="modal fade admin-query" id="deleteChartOfAccountModal<?php echo e(@$chart_of_account->id); ?>" > <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"><?php echo app('translator')->get('accounts.delete_chart_of_account'); ?></h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body"> <div class="text-center"> <h4><?php echo app('translator')->get('common.are_you_sure_to_delete'); ?></h4> </div> <div class="mt-40 d-flex justify-content-between"> <button type="button" class="primary-btn tr-bg" data-dismiss="modal"><?php echo app('translator')->get('common.cancel'); ?></button> <?php echo e(Form::open(['route' => array('chart-of-account-delete',@$chart_of_account->id), 'method' => 'DELETE', 'enctype' => 'multipart/form-data'])); ?> <button class="primary-btn fix-gr-bg" type="submit"><?php echo app('translator')->get('common.delete'); ?></button> <?php echo e(Form::close()); ?> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal163c8ba6efb795223894d5ffef5034f5)): ?> <?php $attributes = $__attributesOriginal163c8ba6efb795223894d5ffef5034f5; ?> <?php unset($__attributesOriginal163c8ba6efb795223894d5ffef5034f5); ?> <?php endif; ?> <?php if (isset($__componentOriginal163c8ba6efb795223894d5ffef5034f5)): ?> <?php $component = $__componentOriginal163c8ba6efb795223894d5ffef5034f5; ?> <?php unset($__componentOriginal163c8ba6efb795223894d5ffef5034f5); ?> <?php endif; ?> </div> </div> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php echo $__env->make('backEnd.partials.data_table_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('backEnd.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/forge/kader-lms.com/resources/views/backEnd/accounts/chart_of_account.blade.php ENDPATH**/ ?>