@extends('layouts.dashboard')

@section('page_title')
Booking
@endsection

@section('page_header_title')
Manage Booking
@endsection

@section('page_body')
{{ Breadcrumbs::render('reserve_booking') }}

<div class="row row-cards row-deck">
  <div class="col-12">                

    <div class="card">
     <div class="card-header">             
      
      <div class="col-md-3">
        <h3 class="card-title">Soft Bookings</h3>

      </div>

      <div class="col-md-5"></div>

      <div class="col-md-3" style="margin-left: 90px;">
        @php($datatable_key = Crypt::encrypt('Soft Booking'))
        <select onchange="showBranchWiseDataTable(event,this,'{{$datatable_key}}','show_softbookings');" name="branch" class="form-control form-control-sm">
          <option value="{{Crypt::encrypt(0)}}">Select {{ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))}}</option>

          @foreach($branch as $rows)
            <option value="{{Crypt::encrypt($rows->id)}}">{{$rows->name}} ({{$rows->code}})</option>
          @endforeach
        </select>
      </div>

    </div>

    <div class="card-status card-status-left bg-blue"></div>
    <div class="table-responsive table-height">
      <table class="table table-hover table-outline table-vcenter text-nowrap card-table cls_datatable">
        <thead>
          <tr>

            <th>Sr #</th>
            <th>Reg #</th>
            <th>Name</th>
            <th>Booking Details</th>
            <th>Reserve Date</th>

            <th>{{ucfirst(EF::plotWhiteLabel()['module'])}} Status</th>
            <th>{{ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))}}</th>
            <th>Booking Status</th> 
             
            <th style="text-align: center;"><i class="dropdown-icon fa fa-cogs"></i></th>                          
          </tr>
        </thead>
        <tbody id="show_softbookings">

            {!!$booking_view!!}

        </tbody>
   </table>
 </div>                               
</div>              
</div>         
</div>

@endsection

@section('page_modal')
  @include('booking.modals.update_soft_booking')
@endsection

@section('page_script')
  
@endsection
