File manager - Edit - /var/www/payraty/accounting_main/resources/views/retainer/index.blade.php
Back
@extends('layouts.admin') @section('breadcrumb') <li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Dashboard') }} </a></li> <li class="breadcrumb-item active">{{ __('Retainers') }}</li> @endsection {{-- @section('action-btn') <div class="float-end"> <!-- <a class="btn btn-sm btn-primary" data-bs-toggle="collapse" href="#multiCollapseExample1" role="button" aria-expanded="false" aria-controls="multiCollapseExample1" data-bs-toggle="tooltip" title="{{__('Filter')}}"> <i class="ti ti-filter"></i> </a> --> <a href="{{route('retainer.export')}}" class="btn btn-sm btn-primary" data-bs-toggle="tooltip" title="{{__('Export')}}"> <i class="ti ti-file-export"></i> </a> @can('create retainer') <a href="{{ route('retainer.create',0) }}" class="btn btn-sm btn-primary" data-bs-toggle="tooltip" title="{{__('Create')}}"> <i class="ti ti-plus"></i> </a> @endcan </div> @endsection --}} @section('content') <div class="row"> <div class="col-sm-12"> <div class="mt-2 p-4 rounded" style="background: #F0F2F5; margin-bottom: 25px"> <div class="d-flex justify-content-between"> <div> <h3 class="h5 text-dark font-weight-semibold">Retainer</h3> <div class="mt-2"> <h3 class="h6 text-muted">Retainer Summary</h3> </div> </div> <div class="d-flex justify-content-end align-items-center gap-3 mt-3 mt-lg-0"> <a href="{{ route('retainer.create',0) }}" class="btn btn-outline-primary-dark d-flex align-items-center"> <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M12 5V19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg> <span class="ms-2">Add New Retainer</span> </a> <a href="{{ route('retainer.export') }}" class="btn btn-outline-dark d-flex align-items-center"> <svg width="18" height="18" viewBox="0 0 18 18" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M6.5325 5.78267L8.25 4.05767V11.2502C8.25 11.4491 8.32902 11.6398 8.46967 11.7805C8.61032 11.9211 8.80109 12.0002 9 12.0002C9.19891 12.0002 9.38968 11.9211 9.53033 11.7805C9.67098 11.6398 9.75 11.4491 9.75 11.2502V4.05767L11.4675 5.78267C11.5372 5.85296 11.6202 5.90876 11.7116 5.94684C11.803 5.98491 11.901 6.00452 12 6.00452C12.099 6.00452 12.197 5.98491 12.2884 5.94684C12.3798 5.90876 12.4628 5.85296 12.5325 5.78267C12.6028 5.71294 12.6586 5.62999 12.6967 5.5386C12.7347 5.4472 12.7543 5.34918 12.7543 5.25017C12.7543 5.15116 12.7347 5.05313 12.6967 4.96173C12.6586 4.87034 12.6028 4.78739 12.5325 4.71767L9.5325 1.71767C9.46117 1.64939 9.37706 1.59586 9.285 1.56017C9.1024 1.48515 8.8976 1.48515 8.715 1.56017C8.62294 1.59586 8.53883 1.64939 8.4675 1.71767L5.4675 4.71767C5.39757 4.7876 5.3421 4.87061 5.30426 4.96198C5.26641 5.05335 5.24693 5.15127 5.24693 5.25017C5.24693 5.34906 5.26641 5.44699 5.30426 5.53835C5.3421 5.62972 5.39757 5.71274 5.4675 5.78267C5.53743 5.8526 5.62045 5.90807 5.71181 5.94591C5.80318 5.98376 5.90111 6.00323 6 6.00323C6.09889 6.00323 6.19682 5.98376 6.28819 5.94591C6.37955 5.90807 6.46257 5.8526 6.5325 5.78267ZM15.75 10.5002C15.5511 10.5002 15.3603 10.5792 15.2197 10.7198C15.079 10.8605 15 11.0513 15 11.2502V14.2502C15 14.4491 14.921 14.6398 14.7803 14.7805C14.6397 14.9212 14.4489 15.0002 14.25 15.0002H3.75C3.55109 15.0002 3.36032 14.9212 3.21967 14.7805C3.07902 14.6398 3 14.4491 3 14.2502V11.2502C3 11.0513 2.92098 10.8605 2.78033 10.7198C2.63968 10.5792 2.44891 10.5002 2.25 10.5002C2.05109 10.5002 1.86032 10.5792 1.71967 10.7198C1.57902 10.8605 1.5 11.0513 1.5 11.2502V14.2502C1.5 14.8469 1.73705 15.4192 2.15901 15.8412C2.58097 16.2631 3.15326 16.5002 3.75 16.5002H14.25C14.8467 16.5002 15.419 16.2631 15.841 15.8412C16.2629 15.4192 16.5 14.8469 16.5 14.2502V11.2502C16.5 11.0513 16.421 10.8605 16.2803 10.7198C16.1397 10.5792 15.9489 10.5002 15.75 10.5002Z" fill="currentColor"/> </svg> <span class="ms-2">Export</span> </a> </div> </div> <div class="mt-4"> <div class="row g-4"> <!-- Quick Statistics Card --> <div class="col-sm-12 col-md-6"> <a href="{{ route('retainer.index') }}" class="card border-0 bg-white shadow-sm text-decoration-none"> <div class="card-body d-flex flex-column justify-content-between p-4"> <div class="d-flex align-items-center text-sm text-muted"> <span class="p-2 grey-color rounded-circle"> <img src="{{ asset('assets/images/svg/all.svg') }}" class="w-4 h-4" alt="Employee Icon" /> </span> </div> <dl class="mt-3"> <dt class="h2 text-primary font-weight-bold"> {{ $totalRetainers ?? 0 }} </dt> <dd class="mt-2 text-muted">All Retainer</dd> </dl> </div> </a> </div> <!-- New Card --> <div class="col-sm-12 col-md-6"> <a href="{{ route('retainer.index') }}" class="card border-0 bg-white shadow-sm text-decoration-none"> <div class="card-body d-flex flex-column justify-content-between p-4"> <div class="d-flex align-items-center text-sm text-muted"> <span class="p-2 orange-color rounded-circle"> <img src="{{ asset('assets/images/svg/bi_people.svg') }}" class="w-4 h-4" alt="Employee Icon" /> </span> </div> <dl class="mt-3"> <dt class="h2 orange-text font-weight-bold"> {{ $newRetainers ?? 0 }} </dt> <dd class="mt-2 text-muted">New Retainer</dd> </dl> </div> </a> </div> </div> </div> </div> <div class=" multi-collapse mt-2 " id="multiCollapseExample1"> <div class="card"> <div class="card-body"> <div class="d-flex flex-row justify-content-between align-items-center margin-bottom-big"> <!-- All Retainer Header --> <div class="flex-grow-1"> <h2 class="text-lg font-semibold text-primary">All Retainer</h2> </div> <!-- Search Input with Icon --> <div class="flex-grow-1 position-relative mt-4 mt-lg-0 me-4"> @if(!\Auth::guard('customer')->check()) {{ Form::open(array('route' => array('retainer.index'),'method' => 'GET','id'=>'frm_submit')) }} @else {{ Form::open(array('route' => array('customer.retainer'),'method' => 'GET','id'=>'frm_submit')) }} @endif <div class="row d-flex align-items-center justify-content-end"> @if(!\Auth::guard('customer')->check()) <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12 mr-2"> <div class="btn-box"> {{ Form::select('customer',$customer,isset($_GET['customer'])?$_GET['customer']:'', array('class' => 'form-control select')) }} </div> </div> @endif <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12 mr-2"> <div class="btn-box"> {{ Form::text('issue_date', isset($_GET['issue_date'])?$_GET['issue_date']:date('Y-m-d'), array('class' => 'form-control month-btn','id'=>'pc-daterangepicker-1','placeholder'=>"Select Date")) }} </div> </div> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <div class="btn-box"> {{ Form::select('status', [''=>'Select Status']+$status,isset($_GET['status'])?$_GET['status']:'', array('class' => 'form-control')) }} </div> </div> <div class="col-auto float-end ms-2"> <a href="#" class="btn btn-sm btn-primary" data-bs-toggle="tooltip" title="{{__('apply')}}" onclick="document.getElementById('frm_submit').submit(); return false;" > <span class="btn-inner--icon"><i class="ti ti-search"></i></span> </a> @if(\Auth::user()->type == 'company') <a href="{{ route('retainer.index') }}" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" title="{{ __('Reset') }}"> <span class="btn-inner--icon"><i class="ti ti-refresh text-white-off "></i></span> </a> @else <a href="{{ route('customer.retainer') }}" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" title="{{ __('Reset') }}"> <span class="btn-inner--icon"><i class="ti ti-refresh text-white-off "></i></span> </a> @endif </div> </div> {{ Form::close() }} </div> <!-- Filters Dropdowns --> <div class="d-flex flex-lg-row flex-column justify-content-end align-items-lg-center align-items-start mt-4 mt-lg-0"> <!-- Pay Group Dropdown --> <div class="mb-3 mb-lg-0 me-lg-4" style="width: 150px;"> <select class="form-select bg-white" aria-label="Pay Group"> <option value="all" selected>Filter</option> <option value="monthly">Monthly</option> <option value="hourly">Hourly</option> </select> </div> <!-- Employment Status Dropdown --> <div class="mb-3 mb-lg-0" style="width: 150px;"> <select class="form-select bg-white" aria-label="Employment Status"> <option value="all" selected>Sort</option> <option value="full-time">New</option> <option value="part-time">Old</option> </select> </div> </div> </div> <div class="table-responsive"> <table class="table datatable"> <thead> <tr> <th> {{__('Retainer')}}</th> @if(!\Auth::guard('customer')->check()) <th> {{__('Customer')}}</th> @endif <th> {{__('Category')}}</th> <th> {{__('Issue Date')}}</th> <th> {{__('Status')}}</th> @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal')) <th width="10%"> {{__('Action')}}</th> @endif {{-- <th> <td class="barcode"> {!! DNS1D::getBarcodeHTML($invoice->sku, "C128",1.4,22) !!} <p class="pid">{{$invoice->sku}}</p> </td> </th> --}} </tr> </thead> <tbody> @if ($retainers->isEmpty()) <tr> <td colspan="10" class="text-center"> <img src="{{ asset('assets/images/no-data.png') }}" alt="No Data" style="max-width: 350px; margin-bottom: 50px; margin-top: 150px;"> <p>{{ __('Oops, no retainer yet.') }}</p> <a href="{{ route('retainer.create',0) }}" class="btn" style="background-color: #002C77; color: white;"> <i class="ti ti-plus"></i> <span class="ms-2">{{ __('Add New Retainer') }}</span> </a> @else @foreach ($retainers as $retainer) <tr class="font-style"> <td class="Id"> @if(\Auth::guard('customer')->check()) <a href="{{ route('customer.retainer.show',\Crypt::encrypt($retainer->id)) }}" class="btn btn-outline-primary">{{ Auth::user()->retainerNumberFormat($retainer->retainer_id) }} </a> @else <a href="{{ route('retainer.show',\Crypt::encrypt($retainer->id)) }}" class="btn btn-outline-primary">{{ Auth::user()->retainerNumberFormat($retainer->retainer_id) }} </a> @endif </td> @if(!\Auth::guard('customer')->check()) <td> {{!empty($retainer->customer)? $retainer->customer->name:'' }} </td> @endif <td>{{ !empty($retainer->category)?$retainer->category->name:''}}</td> <td>{{ Auth::user()->dateFormat($retainer->issue_date) }}</td> <td> @if($retainer->status == 0) <span class="badge fix_badges bg-primary p-2 px-3 rounded">{{ __(\App\Models\retainer::$statues[$retainer->status]) }}</span> @elseif($retainer->status == 1) <span class="badge fix_badges bg-info p-2 px-3 rounded">{{ __(\App\Models\retainer::$statues[$retainer->status]) }}</span> @elseif($retainer->status == 2) <span class="badge fix_badges bg-secondary p-2 px-3 rounded">{{ __(\App\Models\retainer::$statues[$retainer->status]) }}</span> @elseif($retainer->status == 3) <span class="badge fix_badges bg-warning p-2 px-3 rounded">{{ __(\App\Models\retainer::$statues[$retainer->status]) }}</span> @elseif($retainer->status == 4) <span class="badge fix_badges bg-danger p-2 px-3 rounded">{{ __(\App\Models\retainer::$statues[$retainer->status]) }}</span> @endif </td> @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal')) <td class="Action"> @if($retainer->is_convert==0) @can('convert invoice retainer') <div class="action-btn bg-success ms-2"> {!! Form::open(['method' => 'get', 'route' => ['retainer.convert', $retainer->id],'id'=>'proposal-form-'.$retainer->id]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{__('Convert into Invoice')}}" data-original-title="{{__('Convert to Invoice')}}" data-original-title="{{__('Delete')}}" data-confirm="{{__('You want to confirm convert to invoice. Press Yes to continue or Cancel to go back')}}" data-confirm-yes="document.getElementById('proposal-form-{{$retainer->id}}').submit();"> <i class="ti ti-exchange text-white"></i> {!! Form::close() !!} </a> </div> @endcan @else @can('convert invoice retainer') <div class="action-btn bg-success ms-2"> <a href="{{ route('invoice.show',\Crypt::encrypt($retainer->converted_invoice_id)) }}" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="{{__('Already convert to Invoice')}}" data-original-title="{{__('Already convert to Invoice')}}" data-original-title="{{__('Delete')}}"> <i class="ti ti-eye text-white"></i> </a> </div> @endcan @endif @can('duplicate retainer') <div class="action-btn bg-secondary ms-2"> {!! Form::open(['method' => 'get', 'route' => ['retainer.duplicate', $retainer->id],'id'=>'duplicate-form-'.$retainer->id]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{__('Duplicate')}}" data-original-title="{{__('Duplicate')}}" data-original-title="{{__('Delete')}}" data-confirm="{{__('You want to confirm duplicate this invoice. Press Yes to continue or Cancel to go back')}}" data-confirm-yes="document.getElementById('duplicate-form-{{$retainer->id}}').submit();"> <i class="ti ti-copy text-white text-white"></i> {!! Form::close() !!} </a> </div> @endcan @can('show proposal') @if(\Auth::guard('customer')->check()) <div class="action-btn bg-warning ms-2"> <a href="{{ route('customer.retainer.show',\Crypt::encrypt($retainer->id)) }}" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="{{__('Show')}}" data-original-title="{{__('Detail')}}"> <i class="ti ti-eye text-white text-white"></i> </a> </div> @else <div class="action-btn bg-warning ms-2"> <a href="{{ route('retainer.show',\Crypt::encrypt($retainer->id)) }}" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="{{__('Show')}}" data-original-title="{{__('Detail')}}"> <i class="ti ti-eye text-white text-white"></i> </a> </div> @endif @endcan @can('edit retainer') <div class="action-btn bg-info ms-2"> <a href="{{ route('retainer.edit',\Crypt::encrypt($retainer->id)) }}" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="{{__('Edit')}}" data-original-title="{{__('Edit')}}"> <i class="ti ti-edit text-white"></i> </a> </div> @endcan @can('delete retainer') <div class="action-btn bg-danger ms-2"> {!! Form::open(['method' => 'DELETE', 'route' => ['retainer.destroy', $retainer->id],'id'=>'delete-form-'.$retainer->id]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{__('Delete')}}" data-original-title="{{__('Delete')}}" data-confirm="{{__('Are You Sure?').'|'.__('This action can not be undone. Do you want to continue?')}}" data-confirm-yes="document.getElementById('delete-form-{{$retainer->id}}').submit();"> <i class="ti ti-trash text-white text-white"></i> </a> {!! Form::close() !!} </div> @endcan </td> @endif </tr> @endforeach @endif </tbody> </table> </div> </div> </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings