@extends(backpack_view('blank')) @if ( $crud->entity_name == 'project' || $crud->entity_name == 'quotation' || $crud->entity_name == 'agreement' || $crud->entity_name == 'variation-order' || $crud->entity_name == 'template-quotation' || $crud->entity_name == 'invoice' || $crud->entity_name == 'vendor') @section('head_scripts') @endsection @section('before_styles') @endsection @endif @php $defaultBreadcrumbs = [ trans('backpack::crud.admin') => backpack_url('dashboard'), $crud->entity_name_plural => url($crud->route), trans('backpack::crud.edit') => false, ]; // if breadcrumbs aren't defined in the CrudController, use the default breadcrumbs $breadcrumbs = $breadcrumbs ?? $defaultBreadcrumbs; @endphp @section('header')

{!! $crud->getHeading() ?? $crud->entity_name_plural !!} {!! $crud->getSubheading() ?? trans('backpack::crud.edit') . ' ' . $crud->entity_name !!}. @if ($crud->hasAccess('list')) {{ trans('backpack::crud.back_to_all') }} {{ $crud->entity_name_plural }} @endif

@endsection @section('content')
@if ( $crud->entity_name == 'term' || $crud->entity_name == 'quotation' || $crud->entity_name == 'agreement' || $crud->entity_name == 'invoice' || $crud->entity_name == 'variation-order' || $crud->entity_name == 'template-quotation')
@else
@endif @include('crud::inc.grouped_errors')
hasUploadFields('update', $entry->getKey())) enctype="multipart/form-data" @endif> {!! csrf_field() !!} {!! method_field('PUT') !!} @if ($crud->model->translationEnabled())
@endif @if (view()->exists('vendor.backpack.crud.form_content')) @include('vendor.backpack.crud.form_content', [ 'fields' => $crud->fields(), 'action' => 'edit', ]) @else @include('crud::form_content', ['fields' => $crud->fields(), 'action' => 'edit']) @endif {{-- Project --}} @if ($crud->entity_name == 'project') {{ view('app.project.payment.edit') }} {{-- {{ view('app.project.vendor.edit') }} --}} {{ view('app.project.commission.edit') }} @endif {{-- End Project --}} {{-- Quotation --}} @if ($crud->entity_name == 'quotation') {{ view('app.quotation.edit') }} @endif {{-- End Quotation --}} {{-- Agreement --}} @if ($crud->entity_name == 'agreement') {{ view('app.agreement.edit') }} @endif {{-- End Agreement --}} {{-- Variation Order --}} @if ($crud->entity_name == 'variation-order') {{ view('app.variation-order.edit') }} @endif {{-- End Variation Order --}} {{-- Invoices --}} @if ($crud->entity_name == 'invoice') {{ view('app.invoice.edit') }} @endif {{-- End Invoices --}} {{-- PIC & TEAMS --}} @if ($crud->entity_name == 'pic-team') @php $allSales = \App\Models\Salesman::all(); $items = ''; foreach ($allSales as $item) { $items .= ''; } $sales = $crud->entry->salesman; $totalSales = $sales->count(); $curSales = ''; foreach ($sales as $key => $current) { $rowIdx = $key += 1; $curSales .= '

' . $rowIdx . '

%
'; } @endphp
No Designer Commission(%) Actions
@endif {{-- END PIC & TEAMS --}} {{-- Template Quotation --}} @if ($crud->entity_name == 'template-quotation') {{ view('app.template.quotation.edit') }} @endif {{-- End Template Quotation --}} {{-- Appointment --}} @if ($crud->entity_name == 'lead') @php $leadId = $entry->getKey(); @endphp {{ view('app.lead.appointment', compact('leadId')) }} @endif {{-- End Appointment --}} @include('crud::inc.form_save_buttons')
{{-- Remarks Timeline --}} @if ($crud->entity_name == 'lead') @php $remarks = \App\Models\LeadRemark::with('user') ->where('lead_id', $entry->getKey()) ->orderByDesc('created_at') ->get(); @endphp

Remarks

    @php $count =0; @endphp @forelse($remarks as $remark) @if ($count == 10) @php break; @endphp @endif @if ($remark->remark_id == 0)
  • {{ $remark->remarks }}

  • @else
  • {{ $remark->remark->name }}

  • @endif @php $count++; @endphp @empty
  • @endforelse
@canany(['all-leads', 'lead-remarks']) @endcanany
@section('after_scripts') @endsection @endif {{-- End Remarks Timeline --}}
@endsection