@extends('layouts.app') @section('title', "Add Service") @section('content')

Add Service

{!! Form::open(['url' => action([\App\Http\Controllers\WarrantyController::class, 'WarrantyEditPost']), 'method' => 'post', 'id' => 'add_warranty_service_form' ]) !!}



{!! Form::label('serial_number', __('Enter Product serial number') . ':*') !!}



Product Info:

{{-- Product Info --}}

Purchase Info:

@if (!empty($sell_info))

Sell Info:

@endif

Warranty info:

@if (empty($warranty_info))
@else
@php $w_duration_type = $warranty_info->duration_type; $w_duration = $warranty_info->duration; $w_total_day = 0; if ($w_duration_type == "days") { $w_total_day = $warranty_info->duration; } if ($w_duration_type == "years") { $w_total_day = $warranty_info->duration * 365; } if ($w_duration_type == "months") { $w_total_day = $warranty_info->duration * 30; } $w_start_date = \Carbon\Carbon::parse($sell_transaction_info->transaction_date); $w_end_date = $w_start_date->addDays($w_total_day)->toDateString(); $running_date = \Carbon\Carbon::now(); $diffInDays = $running_date->diffInDays($sell_transaction_info->transaction_date); $w_Deadline = $w_total_day - $diffInDays; @endphp
@endif

Warranty Service info:

{{-- {{ $service_transaction_info }} --}} @if (!empty($warranty_info))
@endif {{-- Service Warranty --}}
@php $row_index = 0; $show_date = true; $show_denomination = true; @endphp
@php $product_serial_numbers = App\SerialNumber::where('product_id', $product_info->id)->where('stock_status',"available")->get(); @endphp
{!! Form::label("old_serial" ,__('Old Serial') . ':*') !!}
{!! Form::text("old_serial", $serial_number, ['class' => 'form-control', 'required', 'id' => "old_serial",'readonly']); !!}
{!! Form::label("new_serial" ,__('Select Replace Serial') . ':*') !!}
{!! Form::textarea("service_custom_field_1", null, ['class' => 'form-control', 'id' => "service_custom_field_1",'rows'=>'2']); !!}
@php $row_index = 0; $show_date = true; $show_denomination = true; @endphp
@php $col_class = 'col-md-6'; if(!empty($accounts)){ $col_class = 'col-md-4'; } @endphp
{!! Form::label("amount_sservice_free" ,__('Service Fee') . ':*') !!}
{!! Form::text("total_amount", $warranti_service_info->service_fee ? $warranti_service_info->service_fee : 0, ['class' => 'form-control payment-amount input_number', 'required', 'id' => "amount_sservice_free"]); !!}
{!! Form::label("amount_sservice_free_recived" ,__('Received Service Fee') . ':*') !!}
{!! Form::text("recived_amount", $trans_payment? $trans_payment->amount : 0, ['class' => 'form-control payment-amount input_number', 'required', 'id' => "amount_sservice_free_recived"]); !!}
{!! Form::textarea("service_custom_field_1", null, ['class' => 'form-control', 'id' => "service_custom_field_1",'rows'=>'2']); !!}
{{-- /Service Warranty --}}
{!! Form::close() !!}
@stop @section('javascript') {{-- --}} @endsection