2024-08-17 00:33:56 +00:00
@ use ( Carbon\Carbon )
2020-04-22 12:54:05 +00:00
@ extends ( 'adminlte::layouts.app' )
@ section ( 'htmlheader_title' )
2024-08-17 00:33:56 +00:00
{{ $so -> sid }}
2020-04-22 12:54:05 +00:00
@ endsection
@ section ( 'page_title' )
2024-08-17 00:33:56 +00:00
{{ $so -> sid }}
2020-04-22 12:54:05 +00:00
@ endsection
@ section ( 'contentheader_title' )
2024-08-17 00:33:56 +00:00
Service : {{ $so -> sid }} < strong > {{ $so -> product -> name }} </ strong >
2020-04-22 12:54:05 +00:00
@ endsection
@ section ( 'contentheader_description' )
2024-08-17 00:33:56 +00:00
{{ $so -> name }}
2020-04-22 12:54:05 +00:00
@ endsection
@ section ( 'main-content' )
2022-07-29 07:45:17 +00:00
< div class = " row " >
2024-08-15 22:20:58 +00:00
< div class = " col-12 col-md-6 " >
< form method = " POST " >
@ csrf
2020-04-22 12:54:05 +00:00
2024-08-15 22:20:58 +00:00
< div class = " card card-dark " >
< div class = " card-header p-2 " >
< div class = " card-title " > Cancelling Service </ div >
</ div >
2020-04-22 12:54:05 +00:00
< div class = " card-body " >
2024-08-15 22:20:58 +00:00
< div class = " row " >
2024-08-17 00:33:56 +00:00
< div class = " col-8 col-sm-6 col-md-12 col-lg-6 " >
< x - leenooks :: form . date name = " stop_at " icon = " fa-calendar " label = " Cancel Date " : helper = " sprintf('After %s', $so->cancel_date ->format('Y-m-d')) " : value = " ( $x = $so->stop_at ) ? $x->format ('Y-m-d') : '' " />
</ div >
< div class = " col-8 col-sm-6 col-md-12 col-lg-6 " >
< x - leenooks :: form . date name = " paid_to " icon = " fa-money " label = " Paid To " : value = " $so->invoiced_to ->format('Y-m-d') " readonly />
2020-04-22 12:54:05 +00:00
</ div >
</ div >
2024-08-17 00:33:56 +00:00
@ if ( old ( 'stop_at' ) && Carbon :: now () -> lessThan ( old ( 'stop_at' )))
< div class = " row " >
< div class = " col-5 col-md-10 col-lg-6 col-xl-5 " >
< x - leenooks :: form . text class = " text-right " name = " extra_charges_amount " icon = " fa-dollar-sign " label = " Estimated Extra Charges " : value = " number_format( $so->billing_charge_to (Carbon::create(old('stop_at'))),2) " : old = " false " readonly />
</ div >
< div class = " col-1 " >
< x - leenooks :: form . checkbox name = " extra_charges " label = " Accept " value = " 1 " />
</ div >
</ div >
@ endif
2024-08-15 22:20:58 +00:00
< div class = " row " >
< div class = " col " >
2024-08-17 00:33:56 +00:00
< x - leenooks :: form . textarea name = " notes " label = " Notes " placeholder = " Please let us know why you are cancelling " : value = " $so->order_info_notes ?? '' " />
2020-04-22 12:54:05 +00:00
</ div >
</ div >
</ div >
< div class = " card-footer " >
2024-08-15 22:20:58 +00:00
< x - leenooks :: button . cancel />
< x - leenooks :: button . submit class = " float-right " > Save </ x - leenooks :: button . submit >
2020-04-22 12:54:05 +00:00
</ div >
2024-08-15 22:20:58 +00:00
</ div >
</ form >
2020-04-22 12:54:05 +00:00
</ div >
</ div >
2024-08-15 22:20:58 +00:00
@ endsection